| | |
| | | import com.fgkj.services.Ld9.LD9_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("ld9State") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9State接口") |
| | | public class LD9_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询ld9实时数据 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询ld9实时数据") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | | } |
| | | |
| | | //11.1LD9设备通信状态查询 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备通信状态查询") |
| | | public ServiceModel serchByCondition(@RequestBody LD9_state ld9){ |
| | | // LD9_state ld9= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, LD9_state.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |