From aa3d966cd5b02e258eeeba939ba2a169ed005581 Mon Sep 17 00:00:00 2001 From: wany <13995595726@qq.com> Date: Fri, 15 Nov 2024 13:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E6=B5=8B=E6=9D=A5=E6=B0=B4=E9=87=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gunshi/project/xyt/service/GateValveRealService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gunshi/project/xyt/service/GateValveRealService.java b/src/main/java/com/gunshi/project/xyt/service/GateValveRealService.java index ba7955b..e0647d5 100644 --- a/src/main/java/com/gunshi/project/xyt/service/GateValveRealService.java +++ b/src/main/java/com/gunshi/project/xyt/service/GateValveRealService.java @@ -166,7 +166,7 @@ public class GateValveRealService extends ServiceImpl nowMonth != o.getMonth()).map(TyYearRainfall::getDrp).reduce(BigDecimal.ZERO, BigDecimal::add); //预测来水量 = 月降雨量和 * 水库坝址控制流域面积 - BigDecimal sum = nowMonthDrp.add(value); + BigDecimal sum = nowMonthDrp.add(value).divide(new BigDecimal(1000),2,RoundingMode.HALF_UP); return sum.multiply(watShedArea); }