Просмотр исходного кода

解决断纱日报因为停机状态为8 导不出来的问题

wukai 1 неделя назад
Родитель
Сommit
e8e8a5d7f3

+ 3 - 0
jjt-biz/src/main/java/com/jjt/biz/service/impl/BrokenYarnExportServiceImpl.java

@@ -121,6 +121,9 @@ public class BrokenYarnExportServiceImpl {
         AtomicReference<Long> totalTime = new AtomicReference<>(0L);
         for (Map.Entry<Integer, List<TwinCalcStop>> entry : stopDeviceGroup.entrySet()) {
             Integer stopType = entry.getKey();
+            if (stopType > 7) {
+                continue;
+            }
             int pos = stopType - 1;
             List<TwinCalcStop> stops = entry.getValue();
             stopNum[pos] = stops.size();