From 2940d3a42bc0ae1a1ef5cefaf1ed881da28e8b06 Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期三, 07 八月 2024 20:37:15 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |  177 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 136 insertions(+), 41 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 b07a549..831210c 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -59,7 +59,8 @@
 //    private static final int[][] execute = new int[][]{{1,4},{2,4},{3,4},{4,4},{5,6},{6,6},{7,4},{8,4},{9,3},{10,4},{11,4}};
     private static final int[][] execute = new int[][]{{1,4},{2,4},{3,4},{4,4},{5,6},{6,6},{7,4},{8,4},{9,3},{10,4},{11,4}};
 
-    private static final Integer jarMaxLoc = 6;
+    private static final Integer jarMaxLoc = 7;
+    private static final Float jarTemperature = 50F;
     @Autowired
     private CommonService commonService;
     @Autowired
@@ -502,6 +503,15 @@
                 if (!Cools.isEmpty(barcode)) {
 //                    log.info("{}鍙锋潯鐮佹壂鎻忓櫒妫�娴嬫潯鐮佷俊鎭細{}", inSta.getBarcode(), barcode);
                     if ("NG".endsWith(barcode) || "NoRead".equals(barcode) || !CodeDetectionUtil.barcodeDetection(barcode)) {
+                        continue;
+                    }
+                    if ("00000000".equals(barcode)){
+                        log.error(inSta+"绔欑偣锛屾壂鐮佸け璐ワ紝barcode锛�"+barcode);
+                        // led 寮傚父鏄剧ず
+//                        LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, inSta.getLed());
+//                        if (ledThread != null) {
+//                            MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(5, inSta+"绔欑偣锛屾壂鐮佸け璐ワ紝barcode锛�"+barcode));
+//                        }
                         continue;
                     }
                 } else {
@@ -4889,7 +4899,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -5034,10 +5044,7 @@
                 if (jarProtocol.modeType != JarModeType.AUTO){
                     continue;
                 }
-                if (jarProtocol.getJarTemperature()>50){
-                    log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
-                    continue;
-                }
+
 
                 JarThread jarOtherThread = (JarThread) SlaveConnection.get(SlaveType.Jar, jarSlave.getJarOtherId());
                 JarProtocol jarOtherProtocol = jarOtherThread.getJarProtocol();
@@ -5065,6 +5072,10 @@
                                 break;//寮�闂ㄤ换鍔�   鐢熸垚鍏ョ~鍖栫綈浠诲姟
                             }
                         case 2:
+                            if (jarProtocol.getJarTemperature()>jarTemperature){
+                                log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+                                continue;
+                            }
                             if (jarWrkMastExecuteGenerate2(jarSlave,sign)){
                                 signExecute[i] = true;
                                 break;//鍏宠繘鏂欓棬
@@ -5075,6 +5086,10 @@
                                 break;//寮�鍑烘枡闂�
                             }
                         case 4:
+                            if (jarProtocol.getJarTemperature()>jarTemperature){
+                                log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+                                continue;
+                            }
                             if (jarWrkMastExecuteGenerate4(jarSlave,sign)){
                                 signExecute[i] = true;
                                 break;//鍑虹~鍖栫綈 ===銆� 鍏ュ喎鍗存Ы
@@ -5113,7 +5128,7 @@
                     signExecute[jarSlave.getId()-5] = true;
                     continue;
                 }
-                if (jarProtocol.getJarTemperature()>50){
+                if (jarProtocol.getJarTemperature()>jarTemperature){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                     continue;
                 }
@@ -5128,9 +5143,10 @@
                 if (jarProtocol.isAutoing() && jarProtocol.jarErr==0){
                     if (jarWrkMastExecuteGenerate5(jarSlave,sign)){
                         signExecute[jarSlave.getId()-5] = true;
-                        //鍑虹~鍖栫綈 ===銆� 鍏ュ喎鍗存Ы
+                        return signExecute;
+                        //鍐峰嵈瀹屾垚涓婅緭閫佺嚎
                     }
-                    return signExecute;
+                    continue;
                 }
             } catch (Exception e){
                 log.error("{}鍙风~鍖栫綈JarWrkMastExecute浠诲姟鍒涘缓寮傚父,寮傚父鍘熷洜={}",jarSlave.getId(),e.getMessage());
@@ -5161,7 +5177,7 @@
                 if (jarProtocol.modeType != JarModeType.AUTO){
                     continue;
                 }
-                if (jarProtocol.getJarTemperature()>50){
+                if (jarProtocol.getJarTemperature()>jarTemperature){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                     continue;
                 }
@@ -5259,7 +5275,7 @@
                         if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){
                             return false;
                         }
-                        if (jarProtocol.getJarTemperature()>50){
+                        if (jarProtocol.getJarTemperature()>jarTemperature){
                             log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                             continue;
                         }
@@ -5275,6 +5291,10 @@
                         BasJar basJar = basJarMapper.selectById(jarProtocol.getJarNo());
                         if (Cools.isEmpty(basJar)){
                             log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocol.getJarNo());
+                            return false;
+                        }
+
+                        if (wrkMastExecuteService.getWrkMastExecuteByjarReginCount(basJar.getRegion())!=0){
                             return false;
                         }
 
@@ -5333,6 +5353,10 @@
             if (Cools.isEmpty(basJarMastSign)){
                 return false;
             }
+
+            if (wrkMastExecuteService.getWrkMastExecuteByjarReginCount(basJarMastSign.getJarRegin())!=0){
+                return false;
+            }
 //            //鍒ゆ柇灏忚溅鐘舵��
 //            if (!jarWrkMastExecuteGenerateSteStatus(jarSlave.getJarInSte().get(0).getSteNo(),1,SteStatusType.IDLE)){
 //                return false;
@@ -5355,7 +5379,7 @@
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                     return false;
                 }
-                if (jarProtocol.getJarTemperature()>50){
+                if (jarProtocol.getJarTemperature()>jarTemperature){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                     return false;
                 }
@@ -5413,6 +5437,10 @@
             if (Cools.isEmpty(basJarMastSign)){
                 return false;
             }
+
+            if (wrkMastExecuteService.getWrkMastExecuteByjarReginCount(basJarMastSign.getJarRegin())!=0){
+                return false;
+            }
 //            //鍒ゆ柇灏忚溅鐘舵��
 //            if (!jarWrkMastExecuteGenerateSteStatus(jarSlave.getJarInSte().get(0).getSteNo(),2,SteStatusType.IDLE)){
 //                return false;
@@ -5436,10 +5464,10 @@
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                     return false;
                 }
-                if (jarProtocol.getJarTemperature()>50){
-                    log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
-                    return false;
-                }
+//                if (jarProtocol.getJarTemperature()>jarTemperature){
+//                    log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+//                    return false;
+//                }
                 BasJar basJar = basJarMapper.selectById(jarProtocol.getJarNo());
                 if (Cools.isEmpty(basJar)){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocol.getJarNo());
@@ -5482,13 +5510,21 @@
             if (basJarMastList.isEmpty()){
                 return false;
             }
-
+            List<BasJarMast> basJarMastList10 = basJarMastService.getJarMastByJarIdAndStatusList(jarSlave.getId(), new ArrayList<Integer>() {{
+                add(10);
+            }});
+            if (basJarMastList10.size()==jarMaxLoc){
+                return false;
+            }
             if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),4)!=0){
                 return false;
             }
 
             BasJarMast jarMastByJarIdMin = basJarMastService.getJarMastByJarIdMin(jarSlave.getId(),8,8);
             if (Cools.isEmpty(jarMastByJarIdMin)){
+                return false;
+            }
+            if (wrkMastExecuteService.getWrkMastExecuteByjarReginCount(jarMastByJarIdMin.getJarRegin())!=0){
                 return false;
             }
 
@@ -5577,6 +5613,10 @@
             if (Cools.isEmpty(jarMastByJarIdMin)){
                 return false;
             }
+
+            if (wrkMastExecuteService.getWrkMastExecuteByjarReginCount(jarMastByJarIdMin.getJarRegin())!=0){
+                return false;
+            }
 //
 //            //鍒ゆ柇灏忚溅鐘舵��
 //            if (!jarWrkMastExecuteGenerateSteStatus(jarSlave.getJarOutSte().get(0).getSteNo(),3,SteStatusType.IDLE)){
@@ -5596,13 +5636,33 @@
                 if (jarProtocol.modeType != JarModeType.AUTO){
                     return false;
                 }
-                if (jarProtocol.getJarTemperature()>50){
+                if (jarProtocol.getJarTemperature()>jarTemperature){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                     return false;
                 }
                 BasJar basJar = basJarMapper.selectById(jarProtocol.getJarNo());
                 if (Cools.isEmpty(basJar)){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocol.getJarNo());
+                    return false;
+                }
+
+                // 鑾峰彇纭寲缃愪俊鎭�
+                JarThread jarThreadOther = (JarThread) SlaveConnection.get(SlaveType.Jar, SteAndJarUtil.getRgvJarNo(jarProtocol.getJarNo()));
+                JarProtocol jarProtocolOther = jarThreadOther.getJarProtocol();
+                if (jarProtocolOther == null) {
+                    return false;
+                }
+                if (jarProtocolOther.modeType != JarModeType.AUTO){
+                    return false;
+                }
+
+                BasJar basJarOther = basJarMapper.selectById(jarProtocolOther.getJarNo());
+                if (Cools.isEmpty(basJarOther)){
+                    log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocolOther.getJarNo());
+                    return false;
+                }
+
+                if (!jarProtocolOther.isRightDoor()){
                     return false;
                 }
 
@@ -6019,10 +6079,10 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
-                log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
-                return false;
-            }
+//            if (jarProtocol.getJarTemperature()>jarTemperature){
+//                log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+//                return false;
+//            }
             BasJar basJar = basJarMapper.selectById(jarProtocol.getJarNo());
             if (Cools.isEmpty(basJar)){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocol.getJarNo());
@@ -6147,7 +6207,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6275,7 +6335,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6391,7 +6451,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6507,7 +6567,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6643,7 +6703,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6775,7 +6835,7 @@
             if (jarProtocol.modeType != JarModeType.AUTO){
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -6939,7 +6999,7 @@
 //            if (jarProtocol.modeType != JarModeType.AUTO){
 //                return false;
 //            }
-//            if (jarProtocol.getJarTemperature()>50){
+//            if (jarProtocol.getJarTemperature()>jarTemperature){
 //                log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
 //                return false;
 //            }
@@ -7115,7 +7175,7 @@
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
-            if (jarProtocol.getJarTemperature()>50){
+            if (jarProtocol.getJarTemperature()>jarTemperature){
                 log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                 return false;
             }
@@ -7573,10 +7633,6 @@
                 if (jarProtocol.modeType != JarModeType.AUTO){
                     continue;
                 }
-                if (jarProtocol.getJarTemperature()>50){
-                    log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
-                    return false;
-                }
                 BasJar basJar = basJarMapper.selectById(jarProtocol.getJarNo());
                 if (Cools.isEmpty(basJar)){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarProtocol.getJarNo());
@@ -7602,6 +7658,10 @@
                         && jarProtocol.leftDoorOpen!=1 && jarProtocol.leftDoorOpen!=3
                         && jarProtocol.rightDoorOpen!=1 && jarProtocol.rightDoorOpen!=3
                         && (jarProtocol.leftDoorOpen==2  || jarProtocol.rightDoorOpen==2)){
+                    if (jarProtocol.getJarTemperature()>jarTemperature){
+                        log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+                        return false;
+                    }
                     WrkMastExecute wrkMastExecuteSou = new WrkMastExecute();
                     wrkMastExecuteSou.setWrkSts(3);
                     List<WrkMastExecute> wrkMastExecuteList = wrkMastExecuteService.selectWrkMastExecuteByWrk(wrkMastExecuteSou);
@@ -7636,6 +7696,10 @@
                         && jarProtocol.leftDoorClose!=1 && jarProtocol.leftDoorClose!=3
                         && jarProtocol.rightDoorClose!=1 && jarProtocol.rightDoorClose!=3
                         && (jarProtocol.leftDoorClose==2  || jarProtocol.rightDoorClose==2)){
+                    if (jarProtocol.getJarTemperature()>jarTemperature){
+                        log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
+                        return false;
+                    }
                     WrkMastExecute wrkMastExecuteSou = new WrkMastExecute();
                     wrkMastExecuteSou.setWrkSts(3);
                     List<WrkMastExecute> wrkMastExecuteList = wrkMastExecuteService.selectWrkMastExecuteByWrk(wrkMastExecuteSou);
@@ -7761,6 +7825,8 @@
                         return true;
                     }
                     return true;
+                } else {
+                    log.error("{}鍙峰钩琛¤溅褰撳墠鐘舵�佷笉婊¤冻鍏ョ~鍖栫綈鏉′欢锛屽綋鍓嶄换鍔★紝骞宠 杞︿粠鍙栬揣");
                 }
             }
             return true;
@@ -8008,7 +8074,7 @@
                             if (jarProtocol.statusType .equals(JarStatusType.SOS)){
                                 continue;
                             }
-                            if (jarProtocol.getJarTemperature()>50){
+                            if (jarProtocol.getJarTemperature()>jarTemperature){
                                 continue;
                             }
                             if (jarProtocol.leftDoorOpen != 0 || jarProtocol.rightDoorOpen != 0){
@@ -8132,13 +8198,14 @@
     }
     public synchronized Integer jarGetStartStaNo(Integer staNo) {
         try {
-            int[] jarNos=new int[]{4,2,3,1};//(607鍒嗛厤纭寲缃�)
+            int[] jarNos=new int[]{3,1,4,2};//(607鍒嗛厤纭寲缃�)
             ArrayList<Integer> staNos = new ArrayList<Integer>() {{
                 add(607);add(608);add(609);add(610);add(611);add(612);
                 add(613);add(614);add(615);add(616);add(617);add(618);
                 add(619);add(620);add(621);add(622);
             }};
             ArrayList<Integer> jarNoList = new ArrayList<>();
+            ArrayList<Integer> jarNoList1 = new ArrayList<>();
             ArrayList<Integer> jarNoListNow = new ArrayList<>();
             for (int jarNo : jarNos) {
                 List<BasJarMast> basJarMastList = basJarMastService.getJarMastByJarIdAndStatusList(jarNo, new ArrayList<Integer>() {{
@@ -8155,10 +8222,38 @@
                     jarNoList.add(jarNo);
                 }
             }
-            jarNoList.add(4);
-            jarNoList.add(2);
-            jarNoList.add(3);
-            jarNoList.add(1);
+            for (int jarNo : jarNos) {
+                if (!jarNoList.contains(jarNo)){
+                    jarNoList1.add(jarNo);
+                }
+            }
+            for (int jarNo : jarNoList1) {
+                List<BasJarMast> jarMastByJarIdAndStatusList = basJarMastService.getJarMastByJarIdAndStatusList(8, jarNo);
+                if (jarMastByJarIdAndStatusList.isEmpty()){
+                    jarNoList.add(jarNo);
+                }
+            }
+            jarNoList1 = new ArrayList<Integer>();
+            for (int jarNo : jarNos) {
+                if (!jarNoList.contains(jarNo)){
+                    jarNoList1.add(jarNo);
+                }
+            }
+            for (int jarNo : jarNoList1) {
+                List<BasJarMast> basJarMastList = basJarMastService.getJarMastByJarIdAndStatusList(jarNo, new ArrayList<Integer>() {{
+                    add(5);
+                    add(6);
+                    add(7);
+                    add(8);
+                    add(9);
+                    add(13);
+                    add(14);
+                    add(15);
+                }});
+                if (basJarMastList.isEmpty()){
+                    jarNoList.add(jarNo);
+                }
+            }
             for (int jarNo : jarNoList) {
                 if (jarNoListNow.contains(jarNo)){
                     continue;
@@ -8175,7 +8270,7 @@
                 if (jarProtocol.statusType .equals(JarStatusType.SOS)){
                     continue;
                 }
-                if (jarProtocol.getJarTemperature()>50){
+                if (jarProtocol.getJarTemperature()>jarTemperature){
                     log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo());
                     continue;
                 }

--
Gitblit v1.9.1