|
|
@ -1553,12 +1553,6 @@ public class HydropowerServiceImpl implements HydropowerService { |
|
|
|
hydropower.setMinTemp(this.intervalTemp(weekWeather,station.getCode(),false)); |
|
|
|
hydropower.setMinTemp(this.intervalTemp(weekWeather,station.getCode(),false)); |
|
|
|
// 装机容量
|
|
|
|
// 装机容量
|
|
|
|
hydropower.setCapacity(reals.stream().filter(real-> real.getDeptId().equals(station.getRefDept())).mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum()); |
|
|
|
hydropower.setCapacity(reals.stream().filter(real-> real.getDeptId().equals(station.getRefDept())).mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum()); |
|
|
|
// 出力
|
|
|
|
|
|
|
|
if(Math.abs(hydropower.getCapacity()) > 0){ |
|
|
|
|
|
|
|
hydropower.setOutput(BigDecimal.valueOf(hydropower.getLoad() / hydropower.getCapacity() * 100).setScale(2, RoundingMode.HALF_UP).doubleValue()); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
hydropower.setOutput(0.0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 运行天数
|
|
|
|
// 运行天数
|
|
|
|
hydropower.setRunDay(this.getRunDay(station)); |
|
|
|
hydropower.setRunDay(this.getRunDay(station)); |
|
|
|
// 告警
|
|
|
|
// 告警
|
|
|
@ -1595,6 +1589,12 @@ public class HydropowerServiceImpl implements HydropowerService { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
hydropower.setLoad(0.0); |
|
|
|
hydropower.setLoad(0.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 出力
|
|
|
|
|
|
|
|
if(Math.abs(hydropower.getLoad()) > 0 && Math.abs(hydropower.getCapacity()) > 0){ |
|
|
|
|
|
|
|
hydropower.setOutput(BigDecimal.valueOf(hydropower.getLoad() / hydropower.getCapacity() * 100).setScale(2, RoundingMode.HALF_UP).doubleValue()); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
hydropower.setOutput(0.0); |
|
|
|
|
|
|
|
} |
|
|
|
// 负荷单位
|
|
|
|
// 负荷单位
|
|
|
|
hydropower.setLoadUnit("kW"); |
|
|
|
hydropower.setLoadUnit("kW"); |
|
|
|
return hydropower; |
|
|
|
return hydropower; |
|
|
|