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