From 1532b13d45504d60922e5c99c10daad9faa1a64d Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Thu, 3 Nov 2022 15:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/pf/service/impl/AcceptFormulaServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AcceptFormulaServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AcceptFormulaServiceImpl.java index f2ae3a16..5009db88 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AcceptFormulaServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AcceptFormulaServiceImpl.java @@ -764,7 +764,13 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService { AtomicReference total_sum = new AtomicReference<>(0.0); double bom_ivt_qty = bomdlt_Cr3C2.getDouble("bom_ivt_qty"); - total_sum.set(total_sum.get() + bom_ivt_qty); + + //判断已含添加剂与需配添加剂大小 + bomdlts_plan_map.forEach((key,tjj_map_now)->{ + //需配添加剂重量 + double bom_ivt_qty2 = NumberUtil.round(tjj_map_now.getDouble("bom_ivt_qty"),3).doubleValue(); + total_sum.set(total_sum.get() + bom_ivt_qty2); + }); //计算不需要移库的添加剂(抑制剂) yzj_map.forEach((key,tjj_map_jo)->{ //获取添加剂id