From bbd44cbc31c44c9fabf5001963dba3f6e4ae3b47 Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Tue, 18 Oct 2022 11:08:00 +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, 8 insertions(+) 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 e8bb7440..98413e7e 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 @@ -161,6 +161,10 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService { jsonDtl.put("formula_code", formula_code+""); jsonDtl.put("seq_no", (i+1)+""); jsonDtl.put("material_type","01"); + String material_id = json.getString("material_id"); + if("1503644362234531840,1503644362788179968".contains(material_id)){ + jsonDtl.put("material_type","02"); + } jsonDtl.put("material_id", json.getString("material_id")); jsonDtl.put("dtl_pcsn", json.getString("dtl_pcsn")); jsonDtl.put("formula_qty", json.getString("formula_qty")); @@ -215,6 +219,10 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService { jsonDtl.put("formula_code", now.getString("formula_code")); jsonDtl.put("seq_no", (i+1)+""); jsonDtl.put("material_type","01"); + String material_id = json.getString("material_id"); + if("1503644362234531840,1503644362788179968".contains(material_id)){ + jsonDtl.put("material_type","02"); + } jsonDtl.put("material_id", json.getString("material_id")); jsonDtl.put("dtl_pcsn", json.getString("dtl_pcsn")); jsonDtl.put("formula_qty", json.getString("formula_qty"));