Quellcode durchsuchen

功率风速分析加code字段

wangb vor 1 Monat
Ursprung
Commit
e957742696

+ 1 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/controller/agc/SpeedPowerAnalysis.java

@@ -20,4 +20,5 @@ public class SpeedPowerAnalysis {
     private List<Double> theoreticalPower;
     private List<Double> actuatedPower;
     private List<Long> time;
+    private String code;
 }

+ 1 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/agc/AgcDeviateService.java

@@ -360,6 +360,7 @@ public class AgcDeviateService {
         for (String wtId : wtIdsLs) {
             List<SpeedPowerAnalysis> ls = new ArrayList<>();
             SpeedPowerAnalysis spa = new SpeedPowerAnalysis();
+            spa.setCode(CacheContext.wtmap.get(wtId).getNemCode());
             List<ProBasicEquipmentPoint> proBasicEquipmentPoints = CacheContext.pointNewMap.get(wtId);
             List<ProBasicEquipmentPoint> speedPoint = proBasicEquipmentPoints.stream().filter(p -> p.getUniformCode().equals("AI066")).collect(Collectors.toList());
             List<PointData> historyspeedDatas = edosUtil.getHistoryDatasSnap(speedPoint.get(0).getNemCode(), startTs, endTs, interval);