wwh 1 rok pred
rodič
commit
378997d6eb

+ 1 - 1
huimv-farm-produce/src/main/java/com/huimv/produce/warning/service/impl/AlarmServiceImpl.java

@@ -84,7 +84,7 @@ public class AlarmServiceImpl implements IAlarmService {
             String personAlarmTotal = SendMassageGetPagePersonAlarm(startTime, endTime);
             log.info("人员违规事件数量>>" + personAlarmTotal);
             Integer rywgQuantity = 0;
-            if (personAlarmTotal != null) {
+            if (personAlarmTotal != null && !"{}".equals(personAlarmTotal)) {
                 rywgQuantity = Integer.parseInt(personAlarmTotal);
             }
             //车辆闸机事件数量