Merge remote-tracking branch 'origin/tsg' into tsg
commit
8dc2d59fce
|
|
@ -153,7 +153,7 @@ public class StWaterRController {
|
||||||
if(CollectionUtils.isNotEmpty(list) && CollectionUtils.isNotEmpty(resMonthEcoFlows)){
|
if(CollectionUtils.isNotEmpty(list) && CollectionUtils.isNotEmpty(resMonthEcoFlows)){
|
||||||
Map<Integer, BigDecimal> resMonthEcoFlowMap = resMonthEcoFlows.stream().collect(Collectors.toMap(ResMonthEcoFlow::getMonth, ResMonthEcoFlow::getValue));
|
Map<Integer, BigDecimal> resMonthEcoFlowMap = resMonthEcoFlows.stream().collect(Collectors.toMap(ResMonthEcoFlow::getMonth, ResMonthEcoFlow::getValue));
|
||||||
list.stream().forEach(w -> {
|
list.stream().forEach(w -> {
|
||||||
BigDecimal value = resMonthEcoFlowMap.get(w.getTm().getMonth());
|
BigDecimal value = resMonthEcoFlowMap.get(w.getTm().getMonth() + 1);
|
||||||
w.setApprovalV(value);
|
w.setApprovalV(value);
|
||||||
w.setIsStandard(w.getQ().compareTo(value) >= 0 ? true : false);
|
w.setIsStandard(w.getQ().compareTo(value) >= 0 ? true : false);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue