|
@@ -218,12 +218,12 @@ public class DayPowerGenerationServiceImpl extends ServiceImpl<DayPowerGeneratio
|
|
public String[] findSendData(Long stTime, Long eTime, List<? extends BaseCppEntity> list) {
|
|
public String[] findSendData(Long stTime, Long eTime, List<? extends BaseCppEntity> list) {
|
|
String[] datas = new String[0];
|
|
String[] datas = new String[0];
|
|
List<ForecastPowerShortTermCloud> forecastPowerShortTermCloudList = new ArrayList<>();
|
|
List<ForecastPowerShortTermCloud> forecastPowerShortTermCloudList = new ArrayList<>();
|
|
- List<ForecastPowerShortTermStation> forecastPowerShortTermStationList = new ArrayList<>();
|
|
|
|
|
|
+ List<ForecastPowerShortTermRegulation> forecastPowerShortTermStationList = new ArrayList<>();
|
|
for (BaseCppEntity entity : list) {
|
|
for (BaseCppEntity entity : list) {
|
|
if (entity instanceof ForecastPowerShortTermCloud) {
|
|
if (entity instanceof ForecastPowerShortTermCloud) {
|
|
forecastPowerShortTermCloudList.add((ForecastPowerShortTermCloud) entity);
|
|
forecastPowerShortTermCloudList.add((ForecastPowerShortTermCloud) entity);
|
|
- } else if (entity instanceof ForecastPowerShortTermStation) {
|
|
|
|
- forecastPowerShortTermStationList.add((ForecastPowerShortTermStation) entity);
|
|
|
|
|
|
+ } else if (entity instanceof ForecastPowerShortTermRegulation) {
|
|
|
|
+ forecastPowerShortTermStationList.add((ForecastPowerShortTermRegulation) entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (forecastPowerShortTermCloudList.size() > 0) {
|
|
if (forecastPowerShortTermCloudList.size() > 0) {
|
|
@@ -237,11 +237,11 @@ public class DayPowerGenerationServiceImpl extends ServiceImpl<DayPowerGeneratio
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- List<ForecastPowerShortTermStation> collectList = forecastPowerShortTermStationList.stream().filter(s -> s.getTime().getTime() >= stTime && s.getTime().getTime() <= eTime).collect(Collectors.toList());
|
|
|
|
|
|
+ List<ForecastPowerShortTermRegulation> collectList = forecastPowerShortTermStationList.stream().filter(s -> s.getTime().getTime() >= stTime && s.getTime().getTime() <= eTime).collect(Collectors.toList());
|
|
if (null != forecastPowerShortTermStationList && forecastPowerShortTermStationList.size() > 0) {
|
|
if (null != forecastPowerShortTermStationList && forecastPowerShortTermStationList.size() > 0) {
|
|
datas = new String[collectList.size()];
|
|
datas = new String[collectList.size()];
|
|
int index = 0;
|
|
int index = 0;
|
|
- for (ForecastPowerShortTermStation f : collectList) {
|
|
|
|
|
|
+ for (ForecastPowerShortTermRegulation f : collectList) {
|
|
datas[index] = String.valueOf(f.getFpValue());
|
|
datas[index] = String.valueOf(f.getFpValue());
|
|
index++;
|
|
index++;
|
|
}
|
|
}
|