From ef18ac4d88097a207b9aafa2a290c2d0d38b2d1b Mon Sep 17 00:00:00 2001 From: zhangzq Date: Mon, 15 Jul 2024 15:43:30 +0800 Subject: [PATCH] =?UTF-8?q?opt=EF=BC=9A=E5=90=88=E6=89=B9=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E5=BC=80=E5=8D=95=E5=B0=8F=E6=95=B0=E7=82=B9=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98=E6=94=B9=E4=B8=BA4=E4=BD=8D?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java index df3fd383..5cdb3852 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java @@ -5425,6 +5425,9 @@ public class AutoformulaServiceImpl implements AutoformulaService { } //BOM中碳化钨需含总碳 double CT2 = new_qty*(sum_Cr3C2/100.0)*(c_balance/100.0); + CT2 = new BigDecimal(CT2).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue(); + CT1 = new BigDecimal(CT1).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue(); + //配粉结束 if(CT1==CT2){ //用新料补足剩余部分