src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/core/model/command/LedCommand.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/core/thread/LedThread.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/application.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -1377,13 +1377,21 @@ } // 获取工作档数据 WrkMast wrkMast = wrkMastMapper.selectById(staProtocol.getWorkNo()); if (null == wrkMast || wrkMast.getWrkSts() < 14 || wrkMast.getIoType() < 100) { continue; } // if (null == wrkMast || wrkMast.getWrkSts() < 14 || wrkMast.getIoType() < 100) { continue; } if (null == wrkMast) { continue; } wrkMasts.add(wrkMast); // 组装命令 LedCommand ledCommand = new LedCommand(); ledCommand.setWorkNo(wrkMast.getWrkNo()); ledCommand.setIoType(wrkMast.getIoType()); // 出库模式 switch (wrkMast.getIoType()) { case 1: ledCommand.setTitle("全板入库"); break; case 10: ledCommand.setTitle("空板入库"); break; case 101: ledCommand.setTitle("全板出库"); break; @@ -1405,8 +1413,10 @@ break; } ledCommand.setSourceLocNo(wrkMast.getSourceLocNo()); ledCommand.setLocNo(wrkMast.getLocNo()); ledCommand.setStaNo(wrkMast.getStaNo()); if (wrkMast.getIoType() != 110) { // ledCommand.setSourceStaNo(wrkMast.getSourceStaNo()); if (wrkMast.getIoType() != 110 && wrkMast.getIoType() != 10 ) { List<WrkDetl> wrkDetls = wrkDetlService.findByWorkNo(wrkMast.getWrkNo()); wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl.getMatnr(), wrkDetl.getMaktx(), wrkDetl.getAnfme()))); } @@ -1493,7 +1503,7 @@ if (staProtocol == null) { continue; } if (staProtocol.getWorkNo() != 0) { if (staProtocol.getWorkNo() != 0 && staProtocol.isLoading()) { reset = false; break; } src/main/java/com/zy/core/model/command/LedCommand.java
@@ -29,4 +29,5 @@ private boolean emptyMk = false; private Integer ioType; } src/main/java/com/zy/core/thread/LedThread.java
@@ -96,7 +96,7 @@ TextBxPage page = new TextBxPage(); for (LedCommand command : list) { page.newLine(command.getTitle() +"("+command.getWorkNo()+")"); page.newLine("源库位:"+command.getSourceLocNo()); page.newLine("库位:"+ (command.getIoType() < 100 ? command.getLocNo() : command.getSourceLocNo())); page.newLine("目标站:"+command.getStaNo()); if (!command.isEmptyMk()) { for (MatDto matDto : command.getMatDtos()) { @@ -160,7 +160,7 @@ // page.newLine("自动化立体仓库"); // page.newLine("西格迈股份有限公司"); // } page.newLine(""); page.newLine("力源智能仓储"); // 设置字体 page.setFont(new Font("宋体",Font.PLAIN,13)); src/main/resources/application.yml
@@ -216,7 +216,7 @@ staArr: 303 # LED6 led[5]: id: 5 id: 6 ip: 10.10.10.206 port: 5005 devpPlcId: ${wcs-slave.devp[0].id}