From cd12073768d5f0e96b0fcd7cc83107ea72b23a8d Mon Sep 17 00:00:00 2001 From: cxw <1520264117@qq.com> Date: Thu, 14 Nov 2024 16:30:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=88=E6=A0=B8=E5=AE=9A?= =?UTF-8?q?=E6=B5=81=E9=87=8F=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gunshi/project/xyt/controller/StWaterRController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gunshi/project/xyt/controller/StWaterRController.java b/src/main/java/com/gunshi/project/xyt/controller/StWaterRController.java index 784cb9d..ad881fe 100644 --- a/src/main/java/com/gunshi/project/xyt/controller/StWaterRController.java +++ b/src/main/java/com/gunshi/project/xyt/controller/StWaterRController.java @@ -153,7 +153,7 @@ public class StWaterRController { if(CollectionUtils.isNotEmpty(list) && CollectionUtils.isNotEmpty(resMonthEcoFlows)){ Map 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); });