宁檬 1 year ago
parent
commit
88b46ea45c

+ 5 - 0
web/runeconomy-jjyx/src/main/java/com/gyee/runeconomy/dto/response/StationAnalysis.java

@@ -23,4 +23,9 @@ public class StationAnalysis {
      * 辐照度
      */
     private Double irradiance;
+
+    /**
+     * 场站名称
+     */
+    private String stationName;
 }

+ 1 - 0
web/runeconomy-jjyx/src/main/java/com/gyee/runeconomy/service/goodness/WindturbinegoodnessService.java

@@ -1053,6 +1053,7 @@ public class WindturbinegoodnessService {
             Long pointTime = data.getPointTime();
             StationAnalysis sa = new StationAnalysis();
             sa.setTime(pointTime);
+            sa.setStationName(CacheContext.proBasicOrganizeTreesMap.get(wpid).getAname());
             sa.setIrradiance(collect1.get(pointTime).getPointValueInDouble());
             sa.setActualPower(collect2.get(pointTime).getPointValueInDouble());
             sa.setTheoreticalPower(collect3.get(pointTime).getPointValueInDouble());