Browse Source

状态判断修改

xieshengjie 1 year ago
parent
commit
2f6c1195c8

+ 7 - 5
realtime/generationXK-service/src/main/java/com/gyee/generation/service/realtimelibrary/StatusService.java

@@ -239,13 +239,15 @@ public class StatusService {
     private boolean isJcl(Date currentDate, Map<String, ProBasicEquipmentPoint> stringWindturbinetestingpointnewMap) throws Exception {
         boolean isJcl = false;
         ProBasicEquipmentPoint zsgdPoint = stringWindturbinetestingpointnewMap.get(ContantXk.CJ_YLZSGD);
-
-        if (!zsgdPoint.getNemCode().equals("INITIAL")){
-            Double realData = edosUtil.getSectionData(zsgdPoint,currentDate.getTime()).getPointValueInDouble();
-            if (realData<Double.parseDouble(AI110)){
-                isJcl = true;
+        if (zsgdPoint != null){
+            if (!zsgdPoint.getNemCode().equals("INITIAL")){
+                Double realData = edosUtil.getSectionData(zsgdPoint,currentDate.getTime()).getPointValueInDouble();
+                if (realData<Double.parseDouble(AI110)){
+                    isJcl = true;
+                }
             }
         }
+
         return isJcl;
     }