|
|
@ -1386,7 +1386,10 @@ public class MainSystemMonitoringServiceImpl implements IMainSystemMonitoringSer |
|
|
|
BigDecimal powerYear = value.entrySet().stream().filter(s -> listByYear.contains(s.getKey())).map(s -> BigDecimal.valueOf(s.getValue()).setScale(1, RoundingMode.UP)).reduce(BigDecimal.ZERO, BigDecimal::add); |
|
|
|
BigDecimal powerYear = value.entrySet().stream().filter(s -> listByYear.contains(s.getKey())).map(s -> BigDecimal.valueOf(s.getValue()).setScale(1, RoundingMode.UP)).reduce(BigDecimal.ZERO, BigDecimal::add); |
|
|
|
stationReportVO.setFinishPowerYear(objDivide(String.valueOf(powerYear)).toString()); |
|
|
|
stationReportVO.setFinishPowerYear(objDivide(String.valueOf(powerYear)).toString()); |
|
|
|
//获取计划年发电量
|
|
|
|
//获取计划年发电量
|
|
|
|
Double planPowerYear = planGenertionClient.getPlanPowerYear(Collections.singletonList(stationEntity.getCode()), yearMon[0]); |
|
|
|
DevicePlanGenerationVo param = new DevicePlanGenerationVo(); |
|
|
|
|
|
|
|
param.setStationIds(Collections.singletonList(stationEntity.getCode())); |
|
|
|
|
|
|
|
param.setDate(yearMon[0]); |
|
|
|
|
|
|
|
Double planPowerYear = planGenertionClient.getPlanPowerYear(param); |
|
|
|
stationReportVO.setPowerYearPlan(objDivide(String.valueOf(planPowerYear)).doubleValue()); |
|
|
|
stationReportVO.setPowerYearPlan(objDivide(String.valueOf(planPowerYear)).doubleValue()); |
|
|
|
if (ObjectUtil.isNotEmpty(stationReportVO.getPowerMonPlan()) |
|
|
|
if (ObjectUtil.isNotEmpty(stationReportVO.getPowerMonPlan()) |
|
|
|
&&ObjectUtil.isNotEmpty(stationReportVO.getFinishPowerMon()) |
|
|
|
&&ObjectUtil.isNotEmpty(stationReportVO.getFinishPowerMon()) |
|
|
@ -1483,7 +1486,10 @@ public class MainSystemMonitoringServiceImpl implements IMainSystemMonitoringSer |
|
|
|
Double finishPowerYear = BigDecimal.valueOf(powerCountYear.get()).doubleValue(); |
|
|
|
Double finishPowerYear = BigDecimal.valueOf(powerCountYear.get()).doubleValue(); |
|
|
|
stationReportVO.setFinishPowerYear(objDivide(String.valueOf(finishPowerYear)).toString()); |
|
|
|
stationReportVO.setFinishPowerYear(objDivide(String.valueOf(finishPowerYear)).toString()); |
|
|
|
//当年的计划发电量
|
|
|
|
//当年的计划发电量
|
|
|
|
Double planPowerYear = planGenertionClient.getPlanPowerYear(Collections.singletonList(stationId), year); |
|
|
|
DevicePlanGenerationVo param = new DevicePlanGenerationVo(); |
|
|
|
|
|
|
|
param.setStationIds(Collections.singletonList(stationEntity.getCode())); |
|
|
|
|
|
|
|
param.setDate(year); |
|
|
|
|
|
|
|
Double planPowerYear = planGenertionClient.getPlanPowerYear(param); |
|
|
|
stationReportVO.setPowerYearPlan(objDivide(String.valueOf(planPowerYear)).doubleValue()); |
|
|
|
stationReportVO.setPowerYearPlan(objDivide(String.valueOf(planPowerYear)).doubleValue()); |
|
|
|
//当月的计划发电量
|
|
|
|
//当月的计划发电量
|
|
|
|
R<Float> planPowerMonR = planGenertionClient.planGenerationMonthCount(stationId, month); |
|
|
|
R<Float> planPowerMonR = planGenertionClient.planGenerationMonthCount(stationId, month); |
|
|
|