Selaa lähdekoodia

充电机bug修改

k 1 vuosi sitten
vanhempi
commit
1ca2d9a041

+ 4 - 2
warewms-ams/src/main/java/com/ruoyi/ams/agv/ndc/service/ChargerButtService.java

@@ -241,7 +241,8 @@ public class ChargerButtService {
         boolean isCompacting = this.confirmChargerStatus(IS_COMPACTING, new Date(), true, xx);
         if (!isCompacting) {
             // 反馈TS充电机故障 不能让AGV退出重进因为会有危险
-            this.feedbackTSLog(taskNo, index, RE_ENTRY, agvNo + ",充电机压紧失败!", xx);
+            this.feedbackTSLog(taskNo, index, FAULT, agvNo + ",充电机压紧失败!", xx);
+            return;
         }
         // 反馈TS正常充电
         this.feedbackTSLog(taskNo, index, NORMAL, agvNo + "AGV开始充电!", xx);
@@ -308,6 +309,7 @@ public class ChargerButtService {
         if (!isEnd) {
             // 反馈TS充电机故障
             this.feedbackTSLog(taskNo, index, FAULT, agvNo + ",确认信号:无压紧、无充电、归位,失败!", xx);
+            return;
         }
         // 判断先前是否收到过4003消息的标识
 //        if (wcsTask != null) {
@@ -582,7 +584,7 @@ public class ChargerButtService {
                 return con;
             }
             // 递归
-            confirmChargerStatus(status, startTime, isRecursion, xx);
+           return confirmChargerStatus(status, startTime, isRecursion, xx);
         }
         return con;
     }