From b9ce4e74fab7a87ef18306f112b72191b4687b38 Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Fri, 8 Jul 2022 14:40:41 +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 --- .../service/impl/AutoformulaServiceImpl.java | 19 +++++++++++++++---- .../views/wms/pdm/produce/worktask/index.vue | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) 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 5691ec38..30f5cb81 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 @@ -469,6 +469,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { for(int i=0;i=nedd_qty){ bom_material.put("bom_ivt_qty",nedd_qty); //如果该物料是碳化钨 @@ -1299,6 +1300,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { for(int i=0;i{ String bomdtl_material_id = bomdlt.getString("material_id"); double left_qty = bomdlt.getDouble("left_qty"); + left_qty = NumberUtil.round(left_qty,3).doubleValue(); String is_need_move = bomdlt.getString("is_need_move"); //获取Y1、X1、X2….剩余>0的物料 if(left_qty>0){ @@ -2648,7 +2656,8 @@ public class AutoformulaServiceImpl implements AutoformulaService { continue; } double ivt_qty = now_ivt.getDouble("sum_ivt_qty"); - if(now_ivt.getDouble("sum_ivt_qty") <=0){ + ivt_qty = NumberUtil.roundDown(ivt_qty,3).doubleValue(); + if(ivt_qty <=0){ continue; } if(left_qty