修复月核定流量列表接口

master
cxw 2024-11-14 16:30:22 +08:00
parent 029d92fc07
commit cd12073768
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class StWaterRController {
if(CollectionUtils.isNotEmpty(list) && CollectionUtils.isNotEmpty(resMonthEcoFlows)){
Map<Integer, BigDecimal> resMonthEcoFlowMap = resMonthEcoFlows.stream().collect(Collectors.toMap(ResMonthEcoFlow::getMonth, ResMonthEcoFlow::getValue));
list.stream().forEach(w -> {
BigDecimal value = resMonthEcoFlowMap.get(w.getTm().getMonth());
BigDecimal value = resMonthEcoFlowMap.get(w.getTm().getMonth() + 1);
w.setApprovalV(value);
w.setIsStandard(w.getQ().compareTo(value) >= 0 ? true : false);
});