From 3d11e761bd9fc21c6d46f987d00701ab732702a3 Mon Sep 17 00:00:00 2001 From: weihongyang <1075331873@qq.com> Date: Thu, 16 Jan 2020 16:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E7=AE=A1=E7=90=86=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../produce/manage/dao/ProcessBomMapper.java | 2 + .../manage/mapper/ProcessBomMapper.xml | 16 ++++---- .../manage/mapper/ProductProcessBomMapper.xml | 7 ++-- .../manage/model/MachiningProduct.java | 1 + .../produce/manage/model/ProcessBomDto.java | 20 ++++++++++ .../manage/model/ProcessBomParams.java | 11 ++++++ .../manage/model/ProcessMaterialsBomDto.java | 22 +++++++++++ .../model/ProcessMaterialsBomParams.java | 20 ++++++++++ .../manage/model/ProductProcessBomParams.java | 10 ++++- .../impl/ProductProcessBomServiceImpl.java | 38 +++++++++++-------- .../com/deer/wms/produce/manage/web/Test.java | 16 -------- 11 files changed, 119 insertions(+), 44 deletions(-) delete mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/Test.java diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessBomMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessBomMapper.java index 542769f..ca0085b 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessBomMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessBomMapper.java @@ -25,4 +25,6 @@ public interface ProcessBomMapper extends Mapper { void insertOrUpdate(List processBomList); ProductProcessBomPo findProductAndProcessBomByProdBom(Integer productBomId); + + Integer saveOrUpdate(ProcessBom processBom); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml index cfb3c47..c71e7bb 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml @@ -24,12 +24,7 @@ - - - - - - + @@ -46,6 +41,7 @@ + @@ -74,7 +70,7 @@ + + REPLACE INTO mt_alone_process_bom + (id, update_time, process_name, product_process_id, process_content, process_step, process_apartment) + VALUES (#{id}, #{updateTime}, #{processName}, #{productProcessId}, #{processContent}, #{processStep}, #{processApartment}) + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml index dd561c7..e6264f3 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml @@ -97,8 +97,7 @@