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 | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 45 insertions(+), 1 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 507683a..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(""); } //鍑哄簱搴撲綅涓嶆槸鏈�澶栧眰搴撲綅锛屽垽鏂祬搴撲綅缁勬槸鍚﹂兘涓虹┖锛屾垨瀛樺湪搴撲綅绉昏浆浠诲姟 @@ -1068,6 +1069,12 @@ SteProtocol steProtocol = steThread.getSteProtocol(); if (steProtocol == null) { continue; } if (steProtocol.isIdle()) { + + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + continue; + } // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); @@ -1260,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(); @@ -1688,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); // 绌挎杞︾紪鍙� @@ -1883,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); // 绌挎杞︾紪鍙� @@ -1896,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()); @@ -1914,6 +1940,12 @@ if (!basSteService.updatePakMk(steNo, "Y")) { log.error("淇敼绌挎杞︿綔涓氱姸鎬� 澶辫触锛侊紒锛岀┛姊溅={}", steNo); + return; + } + + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ return; } @@ -1950,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); // 绌挎杞︾紪鍙� @@ -1964,7 +2002,7 @@ if (!MessageQueue.offer(SlaveType.Ste, steNo, new Task(2, steCommand))) { log.error("绌挎杞﹀懡浠や笅鍙戝け璐ワ紝绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); } else { - log.info("绌挎杞﹀懡浠や笅鍙戞垚鍔�(璁╁皬杞︿粠杩滅偣==>>绉诲姩鍒拌繎鐐�)锛岀┛姊溅鍙�={}锛屼换鍔℃暟鎹�={}", steNo, JSON.toJSON(steCommand)); + log.info("绌挎杞﹀懡浠や笅鍙戞垚鍔�(璁╁皬杞︿粠杩滅偣==>>绉诲姩鍒拌繎鐐�)锛孖oType={}, 绌挎杞﹀彿={}锛屼换鍔℃暟鎹�={}", wrkMast.getIoType(), steNo, JSON.toJSON(steCommand)); // 淇敼宸ヤ綔妗g姸鎬� 缁戝畾绌挎杞� wrkMast.setSteNo(steNo); wrkMast.setModiTime(new Date()); @@ -1986,6 +2024,12 @@ if (steProtocol == null) { return; } if (steProtocol.isIdle()) { + //灏忚溅鍙兘缁戝畾涓�绗斾綔涓氫腑浠诲姟 + WrkMast wrkMast1 = wrkMastMapper.selectSteNoData(steNo); + if(wrkMast1 != null){ + return; + } + // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- SteCommand steCommand = new SteCommand(); steCommand.setSteNo(steNo); // 绌挎杞︾紪鍙� -- Gitblit v1.9.1