| | |
| | | import com.zy.asrs.domain.dto.WorkChartAxis; |
| | | import com.zy.asrs.domain.vo.LocChartPie; |
| | | import com.zy.asrs.mapper.ReportQueryMapper; |
| | | import com.zy.common.model.MatDto; |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.core.CrnThread; |
| | | import com.zy.core.cache.SlaveConnection; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok().add(errorMsg); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | // MatDto matDto = new MatDto(); |
| | | // matDto.setMatNo("1111"); |
| | | // matDto.setCount(100.0); |
| | | // matDto.setMaknx("测试用料"); |
| | | // LedCommand ledCommand = new LedCommand(); |
| | | // ledCommand.setStaNo(8); |
| | | // ledCommand.setTitle("入库启动"); |
| | | // ledCommand.setLocNo("0100101"); |
| | | // ledCommand.setWorkNo(9998); |
| | | // ledCommand.setEmptyMk(false); |
| | | // ledCommand.setIoType(1); |
| | | // ledCommand.setSourceStaNo(15); |
| | | // ArrayList<MatDto> matDtos = new ArrayList<>(); |
| | | // matDtos.add(matDto); |
| | | // ledCommand.setMatDtos(matDtos); |
| | | // ArrayList<LedCommand> ledCommands = new ArrayList<>(); |
| | | // ledCommands.add(ledCommand); |
| | | // return R.ok(ledCommands); |
| | | return R.ok().add(commandList); |
| | | } |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | // 获取输送线plc线程 |
| | | LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, ledId); |
| | | String ledContent = ledThread.getStringBuffer().toString(); |
| | | |
| | | // ledContent = "ask的模块萨满大算了萨满大了\n 是窘境到埃及嗲家嗲\n 萨达姆打开萨满大凯撒麦当劳萨满大老师"; |
| | | |
| | | return R.ok( |
| | |
| | | .add("yDistance", Arith.multiplys(1, Math.abs(yDistance), 1)) // 累计升降距离km |
| | | .add("xDuration", Arith.multiplys(1, Math.abs(xDuration), 1)) // 累计走行时长h |
| | | .add("yDuration", Arith.multiplys(1, Math.abs(yDuration), 1)) // 累计升降时长h |
| | | .add("isShow", !Cools.isEmpty(ledContent)) // 是否显示内容 |
| | | .add("content", ledContent) // 显示内容 |
| | | ); |
| | | } |
| | | |