From 3c4a24ae2405f6f7aba06ef0ebfcce3380d32dc1 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Thu, 21 Nov 2024 23:04:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E6=8A=A5=E8=A1=A8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 增加配送质量报表 --- .../service/impl/QualityDispatchNumberServiceImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/QualityDispatchNumberServiceImpl.java b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/QualityDispatchNumberServiceImpl.java index 39b30ce85..31f0a3673 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/QualityDispatchNumberServiceImpl.java +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/QualityDispatchNumberServiceImpl.java @@ -95,13 +95,10 @@ public class QualityDispatchNumberServiceImpl implements QualityDispatchNumberSe if(StrUtil.isNotEmpty(planNum)){ // 计算 ((planNum-exceptionNum)/planNum)*100 保留两位小数 int planNumInt = Convert.toInt(planNum); - log.info("planNumInt:"+planNumInt); if (planNumInt > 0) { - BigDecimal div = NumberUtil.div(NumberUtil.sub(planNum, exceptionNum), new BigDecimal(planNum), 2); + BigDecimal div = NumberUtil.div(NumberUtil.mul(NumberUtil.sub(planNum, exceptionNum), 100), new BigDecimal(planNum), 2); String str = Convert.toStr(div); - log.info("div:"+div); String s = str.replaceAll(".00", ""); - log.info("s:"+s); qualityDispatchTaskVO.setPlanAccuracy(s +"%"); } else { qualityDispatchTaskVO.setPlanAccuracy("0%");