From cf3362ed660c216058ad9c7f73d2b3cc5b1d40fd Mon Sep 17 00:00:00 2001 From: pengjie <17373303529@163.com> Date: Tue, 25 Jun 2024 09:23:13 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xmgl/modules/xz/controller/XzRiskPredictionController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzRiskPredictionController.java b/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzRiskPredictionController.java index dd55cae0c..5aaebc043 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzRiskPredictionController.java +++ b/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzRiskPredictionController.java @@ -828,8 +828,9 @@ public class XzRiskPredictionController { BigDecimal limitTime = new BigDecimal(resultMap.get("limitTime").toString()); BigDecimal levelRisk = new BigDecimal(resultMap.get("levelRisk").toString()); BigDecimal safe = new BigDecimal(resultMap.get("safe").toString()); + BigDecimal total = new BigDecimal(resultMap.get("total").toString()); resultMap.put("area", NumberUtils.percent(PolygonUtil.calRadioArea(1.0, 5, security.doubleValue(), - limitTime.doubleValue(), levelRisk.doubleValue(), safe.doubleValue()), 2)); + limitTime.doubleValue(), total.doubleValue(), levelRisk.doubleValue(), safe.doubleValue()), 2)); resultList.add(resultMap); } return Result.success(resultList);