From 13c2b426704d4ec12e4c263d054cec2f1416be39 Mon Sep 17 00:00:00 2001 From: TQS <56479841@qq.com> Date: 星期二, 22 十一月 2022 12:28:24 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java index 77891d3..9e28c38 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -920,6 +920,7 @@ || Utils.getLev(wrkMast.getSourceLocNo()) != Utils.getLev(one.getLocNo()))){ continue; } + log.info(""); } //鍑哄簱搴撲綅涓嶆槸鏈�澶栧眰搴撲綅锛屽垽鏂祬搴撲綅缁勬槸鍚﹂兘涓虹┖锛屾垨瀛樺湪搴撲綅绉昏浆浠诲姟 @@ -1069,6 +1070,12 @@ if (steProtocol == null) { continue; } if (steProtocol.isIdle()) { + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + continue; + } + // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� @@ -1078,10 +1085,12 @@ steCommand.setRow(Utils.getGroupRow(steProtocol.getRow().intValue()).shortValue()); steCommand.setBay(steProtocol.getBay()); steCommand.setLev(steProtocol.getLev()); + steCommand.setMemo("11==>14灏忚溅鎼嚭搴撲换鍔★紝浠诲姟鍙�"+wrkMast.getWrkNo()+""); if (!MessageQueue.offer(SlaveType.Ste, steNo, new Task(2, steCommand))) { log.error("绌挎杞﹀懡浠や笅鍙戝け璐ワ紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); } else { + log.info("绌挎杞﹀懡浠や笅鍙戞垚鍔�(11==>14灏忚溅鎼嚭搴撲换鍔�)锛岀┛姊溅鍙�={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); // 淇敼宸ヤ綔妗g姸鎬� 11.鐢熸垚鍑哄簱ID => 14.灏忚溅鎼嚭搴� Date now = new Date(); wrkMast.setWrkSts(14L); @@ -1258,6 +1267,12 @@ SteProtocol steProtocol = steThread.getSteProtocol(); if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); @@ -1686,6 +1701,12 @@ if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } + // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� @@ -1881,6 +1902,12 @@ if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } + // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� @@ -1894,6 +1921,7 @@ if (!MessageQueue.offer(SlaveType.Ste, steNo, new Task(2, steCommand))) { log.error("绌挎杞﹀懡浠や笅鍙戝け璐ワ紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); } else { + log.error("绌挎杞﹀懡浠や笅鍙戞垚鍔熻灏忚溅浠� 杩滅偣 ====>> 寰呮満浣�,缁戝畾绌挎杞�,IoType={}, 绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", wrkMast.getIoType(), steNo, JSON.toJSON(steCommand)); // 淇敼宸ヤ綔妗g姸鎬� 缁戝畾绌挎杞� wrkMast.setSteNo(steNo); wrkMast.setModiTime(new Date()); @@ -1912,6 +1940,12 @@ if (!basSteService.updatePakMk(steNo, "Y")) { log.error("淇敼绌挎杞︿綔涓氱姸鎬� 澶辫触锛侊紒锛岀┛姊溅={}", steNo); + return; + } + + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ return; } @@ -1948,6 +1982,12 @@ if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } + // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� @@ -1957,10 +1997,12 @@ steCommand.setRow(Utils.getGroupRow(steProtocol.getRow().intValue()).shortValue()); steCommand.setBay(steProtocol.getBay()); steCommand.setLev(steProtocol.getLev()); + steCommand.setMemo("缁戝畾灏忚溅鍙凤紝璁╁皬杞︿粠 杩滅偣 ====>> 绉诲姩鍒拌繎鐐�"); if (!MessageQueue.offer(SlaveType.Ste, steNo, new Task(2, steCommand))) { log.error("绌挎杞﹀懡浠や笅鍙戝け璐ワ紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); } else { + log.info("绌挎杞﹀懡浠や笅鍙戞垚鍔�(璁╁皬杞︿粠杩滅偣==>>绉诲姩鍒拌繎鐐�)锛孖oType={}, 绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", wrkMast.getIoType(), steNo, JSON.toJSON(steCommand)); // 淇敼宸ヤ綔妗g姸鎬� 缁戝畾绌挎杞� wrkMast.setSteNo(steNo); wrkMast.setModiTime(new Date()); @@ -1981,6 +2023,12 @@ SteProtocol steProtocol = steThread.getSteProtocol(); if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); @@ -2316,9 +2364,11 @@ steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� steCommand.setTaskNo(wrkMast.getWrkNo()); // 宸ヤ綔鍙� steCommand.setTaskMode(SteTaskModeType.findOutByLoc(wrkMast.getSourceLocNo())); // 浠诲姟妯″紡: 鎼嚭搴� + steCommand.setMemo("鍑哄簱 ===>> 杩佸叆灏忚溅 瀹屾垚"); if (!MessageQueue.offer(SlaveType.Ste, steNo, new Task(2, steCommand))) { log.error("绌挎杞﹀懡浠や笅鍙戝け璐ワ紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); } else { + log.info("绌挎杞﹀懡浠や笅鍙戞垚鍔燂紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); // 13.杩佸叆灏忚溅 ==> 14.灏忚溅鎼嚭搴� wrkMast.setWrkSts(14L); Date now = new Date(); -- Gitblit v1.9.1