From 6c4757da3090718ec650026edd70500939743dbf Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Fri, 1 Jul 2022 11:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/pf/service/impl/InitformulaServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/InitformulaServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/InitformulaServiceImpl.java index 5d9a18bc..215ea34c 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/InitformulaServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/InitformulaServiceImpl.java @@ -344,7 +344,7 @@ public class InitformulaServiceImpl implements InitformulaService { JSONObject md_jo = md_me_materialbase.query("is_delete='0' and material_id='"+jo.getString("material_id")+"'").uniqueResult(0); if(md_jo!=null){ //是否软废 - if(MaterOptTypeEnum.RF.getClass_idStr().contains(md_jo.getString("material_type_id"))){ + if(MaterOptTypeEnum.RD_AND_PG.getClass_idStr().contains(md_jo.getString("material_type_id"))){ JSONObject pro_jo = md_me_producmaterialext.query("material_id='"+jo.getString("material_id")+"'").uniqueResult(0); double net_rate = pro_jo.getDouble("net_rate"); RF_total = RF_total+jo.getDouble("formula_qty")*pro_jo.getDouble("net_rate")/100.0; @@ -441,7 +441,7 @@ public class InitformulaServiceImpl implements InitformulaService { JSONObject md_jo = md_me_materialbase.query("is_delete='0' and material_id='"+jo.getString("material_id")+"'").uniqueResult(0); if(md_jo!=null){ //是否软废 - if(MaterOptTypeEnum.RF.getClass_idStr().contains(md_jo.getString("material_type_id"))){ + if(MaterOptTypeEnum.RD_AND_PG.getClass_idStr().contains(md_jo.getString("material_type_id"))){ JSONObject pro_jo = md_me_producmaterialext.query("material_id='"+jo.getString("material_id")+"'").uniqueResult(0); double net_rate = pro_jo.getDouble("net_rate"); RF_total = RF_total+jo.getDouble("formula_qty")*pro_jo.getDouble("net_rate")/100.0; @@ -616,7 +616,7 @@ public class InitformulaServiceImpl implements InitformulaService { JSONObject md_jo = md_me_materialbase.query("is_delete='0' and material_id='"+jo.getString("material_id")+"'").uniqueResult(0); if(md_jo!=null){ //是否软废 - if(MaterOptTypeEnum.RF.getClass_idStr().contains(md_jo.getString("material_type_id"))){ + if(MaterOptTypeEnum.RD_AND_PG.getClass_idStr().contains(md_jo.getString("material_type_id"))){ JSONObject pro_jo = md_me_producmaterialext.query("material_id='"+jo.getString("material_id")+"'").uniqueResult(0); double net_rate = pro_jo.getDouble("net_rate"); RF_total = RF_total+jo.getDouble("formula_qty")*pro_jo.getDouble("net_rate")/100.0; @@ -714,7 +714,7 @@ public class InitformulaServiceImpl implements InitformulaService { JSONObject md_jo = md_me_materialbase.query("is_delete='0' and material_id='"+jo.getString("material_id")+"'").uniqueResult(0); if(md_jo!=null){ //是否软废 - if(MaterOptTypeEnum.RF.getClass_idStr().contains(md_jo.getString("material_type_id"))){ + if(MaterOptTypeEnum.RD_AND_PG.getClass_idStr().contains(md_jo.getString("material_type_id"))){ JSONObject pro_jo = md_me_producmaterialext.query("material_id='"+jo.getString("material_id")+"'").uniqueResult(0); double net_rate = pro_jo.getDouble("net_rate"); RF_total = RF_total+jo.getDouble("formula_qty")*pro_jo.getDouble("net_rate")/100.0;