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 01cae38..542769f 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 @@ -17,6 +17,7 @@ public interface ProcessBomMapper extends Mapper { void insertProcessMaterialsBom(List list); List findListByProductBom(ProcessBomParams params); + List findListByProductBomId(ProcessBomParams params); List findListByProductNameId(ProcessBomParams params); diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessMaterialsBomMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessMaterialsBomMapper.java index dc924bb..7246b8c 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessMaterialsBomMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProcessMaterialsBomMapper.java @@ -14,7 +14,7 @@ public interface ProcessMaterialsBomMapper extends Mapper { List findMaterilaListByProcessBomId(ProcessBom processBom); - void insertOrUpdate(List processMaterialsBomList); + List findProcMatBomVoListByProcBom(ProcessMaterialsBomParams procMatBomParams); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java index 45e76b7..03ade96 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java @@ -19,4 +19,6 @@ public interface ProductProcessBomMapper extends Mapper { List findListById(ProductProcessBomParams params); List findByProductNameAndProductNum(ProductProcessBomParams mtAloneProductProcessBomParams); + + ProductProcessBom selectByProdProcBom(ProductProcessBomParams params); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml index 0f512c3..8a0aded 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml @@ -95,7 +95,7 @@ AND process.company_id = #{companyId} - + ORDER BY process.process_step diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessMaterialsBomMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessMaterialsBomMapper.xml index 1012dd8..2ab49ae 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessMaterialsBomMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessMaterialsBomMapper.xml @@ -60,6 +60,20 @@ + + + SELECT *,COUNT(mapb.process_step) process_step FROM mt_alone_product_process_bom mappb @@ -152,4 +142,18 @@ + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessMapper.xml index ce20904..7c73340 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessMapper.xml @@ -109,13 +109,13 @@ OR client.client_name LIKE CONCAT('%', #{keywords}, '%') OR prodproc.contract_name LIKE CONCAT('%', #{keywords}, '%') - + AND DATE_FORMAT(prodproc.create_time,'%Y-%m-%d') = DATE_FORMAT(#{createDate}, '%Y-%m-%d') AND prodproc.company_id = #{companyId} - + ORDER BY prodproc.create_time DESC, prodproc.update_time DESC