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 251b0364..51f78efd 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 @@ -2741,7 +2741,8 @@ public class AutoformulaServiceImpl implements AutoformulaService { JSONObject rf_dis = rf_list.getJSONObject(i); String set_material_id = rf_dis.getString("material_id"); //R1p*纯粉系数 - double net_rate_qty = rf_dis.getDouble("net_rate_qty"); + double net_rate_qty = rf_dis.getDouble("formula_qty")*net_rate_map.get(set_material_id)/100.0; +// double net_rate_qty = rf_dis.getDouble("net_rate_qty"); JSONObject ProductMaterialSet = MD_PD_ProductMaterialSet.query("set_type='01' and material_id='"+material_id+"' and set_material_id='"+set_material_id+"'").uniqueResult(0); if(ProductMaterialSet == null){ throw new BadRequestException("产品"+material_code+"未配置新料模式可配粉软废信息!"); @@ -4323,7 +4324,8 @@ public class AutoformulaServiceImpl implements AutoformulaService { rf_map.forEach((key, rf_dis)->{ String set_material_id = rf_dis.getString("material_id"); //R1p*纯粉系数 - double net_rate_qty = rf_dis.getDouble("net_rate_qty"); + double net_rate_qty = rf_dis.getDouble("formula_qty")*net_rate_map.get(set_material_id)/100.0; +// double net_rate_qty = rf_dis.getDouble("net_rate_qty"); JSONObject ProductMaterialSet = MD_PD_ProductMaterialSet.query("set_type='02' and material_id='"+material_id+"' and set_material_id='"+set_material_id+"'").uniqueResult(0); if(ProductMaterialSet == null){ throw new BadRequestException("产品"+material_code+"未配置改配模式可配粉软废信息!"); @@ -4368,7 +4370,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { //当前软废已配 double now_formula_qty = bomdlts2_now.getDouble("now_formula_qty"); //已配小于需配 - if(now_formula_qty