xieshengjie 2 سال پیش
والد
کامیت
72983343b6

+ 2 - 2
realtime/generationXK-service/src/main/java/com/gyee/generation/service/realtimelibrary/AccessStatusService.java

@@ -158,13 +158,13 @@ public class AccessStatusService {
                 ProBasicEquipmentPoint equipmentPoint = wtpAimap.get(wt.getId()).get(ContantXk.SBZT);
                 pointIds.add(equipmentPoint.getNemCode());
             });
-            double zt = 0;
+            double zt = 1;
             try {
                 List<PointData> realData = edosUtil.getRealData(pointIds);
                 List<Double> doubles = realData.stream().map(real -> real.getPointValueInDouble()).collect(Collectors.toList());
                 if (Collections.max(doubles).equals(Collections.min(doubles))){
                     zt = Collections.max(doubles);
-                }else if(doubles.stream().filter(i->i.equals(1)).collect(Collectors.toList()).size()>0){
+                }else if(doubles.stream().filter(i->i==1).collect(Collectors.toList()).size()>0){
                     zt = 1;
                 }
             } catch (Exception e) {

+ 4 - 2
realtime/generationXK-service/src/test/java/com/gyee/generation/GenerationTest.java

@@ -79,7 +79,7 @@ public class GenerationTest {
 //        //场站接入状态,总预测功率
 //        accessStatusService.accessStatus();
 //        //全场状态
-//        accessStatusService.fullFieldState();
+        accessStatusService.fullFieldState();
 
 
 //        statusService.powerRationing();
@@ -87,7 +87,7 @@ public class GenerationTest {
 //        statusService.calculateStatusNumber();
 
 //          realtimeService.savaRealtimeTarget();
-        cycleCalculationService.saveCyle();
+//        cycleCalculationService.saveCyle();
 
 //        electricityMeteringService.saveGenerationDatas();
 
@@ -100,5 +100,7 @@ public class GenerationTest {
 //        regionCalreService.RegionCal();
 
 //        safetyDayService.saveSafetyday();
+
+
     }
 }