| | |
| | | |
| | | import org.jeecg.modules.dry.service.*; |
| | | |
| | | import org.jeecg.modules.dry.vo.CommandMessageVo; |
| | | import org.jeecg.modules.dry.vo.RealTimeDataVo; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return dryRealTimeDataService.queryMachineRealTImeData(realTimeDataVo); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 1001 风箱升 1002 风箱降 |
| | | * 1003 滚筒升 1004 滚筒降 |
| | | * 1005 滚筒正转 1006 滚筒反转 |
| | | * 1007 设备停止 |
| | | */ |
| | | @ApiOperation(value="发送控制指令", notes="向服务端发送控制指令,由服务端通过socket转发给控制模块") |
| | | @PostMapping("/sendCommand") |
| | | public Result<?> sendCommand(@RequestBody CommandMessageVo msgVo) { |
| | | return dryRealTimeDataService.sendSocketMsg(msgVo); |
| | | } |
| | | |
| | | } |