|
@@ -177,7 +177,7 @@ public class ForecastPowerUltraShortTermService extends BaseService {
|
|
|
PowerStationStatusData realPower = realPowerList.get(0);
|
|
|
// 将实际功率替换到对应的超短期点位上
|
|
|
ForecastPowerUltraShortTermHis d = forecastPowerUltraShortTermHiss.get(replacePoint - 1);
|
|
|
- if (realPower.getRealValue().compareTo(new BigDecimal(0)) != -1) {
|
|
|
+ if (realPower.getRealValue().compareTo(new BigDecimal(0)) >=0) {
|
|
|
d.setAbleValue(realPower.getRealValue());
|
|
|
}
|
|
|
}
|
|
@@ -187,7 +187,7 @@ public class ForecastPowerUltraShortTermService extends BaseService {
|
|
|
BigDecimal lpl = new BigDecimal(lowerPredictionLimit);
|
|
|
|
|
|
forecastPowerUltraShortTermHiss.forEach(s -> {
|
|
|
- if (s.getAbleValue().compareTo(lpl) == -1) {
|
|
|
+ if (s.getAbleValue().compareTo(lpl) < 0) {
|
|
|
s.setAbleValue(lpl);
|
|
|
}
|
|
|
});
|
|
@@ -367,7 +367,7 @@ public class ForecastPowerUltraShortTermService extends BaseService {
|
|
|
forecastPowerUltraShortTerm.setForecastTime(forecastPowerShortTermList.get(i).getForecastTime());
|
|
|
forecastPowerUltraShortTerm.setPredictionModelEnum(PredictionModelEnum.E9);
|
|
|
forecastPowerUltraShortTerm.setCoefficientValue(ustPower);
|
|
|
- forecastPowerUltraShortTerm.setDifferenceValue(new BigDecimal(-0.99).setScale(2, RoundingMode.HALF_UP));
|
|
|
+ forecastPowerUltraShortTerm.setDifferenceValue(BigDecimal.valueOf(-0.99).setScale(2, RoundingMode.HALF_UP));
|
|
|
forecastPowerUltraShortTerm.setFpValue(ustPower);
|
|
|
forecastPowerUltraShortTerm.setGenDate(new Date(monentTime));
|
|
|
forecastPowerUltraShortTerm.setStationCode(stationCode);
|