diff --git a/src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java index f5b777df..0ac4f937 100644 --- a/src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java @@ -149,7 +149,7 @@ public class RecipeManagementServiceImpl extends ServiceImpl updateRecipeHeaderResponse = recipeServiceBean.modifyRecipeHeader(srv, recipeIfsHeader); if (!"200".equals(updateRecipeHeaderResponse.get("resultCode"))) { - throw new RuntimeException("ifs RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg")); + throw new RuntimeException("IFS RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg")); } } } @@ -184,7 +184,7 @@ public class RecipeManagementServiceImpl extends ServiceImpl updateRecipeHeaderResponse = recipeServiceBean.modifyRecipeHeader(srv, recipeIfsHeader); if (!"200".equals(updateRecipeHeaderResponse.get("resultCode"))) { - throw new RuntimeException("ifs RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg")); + throw new RuntimeException("IFS RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg")); } } } diff --git a/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml b/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml index 8fa2cf54..92f5084c 100644 --- a/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml +++ b/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml @@ -273,7 +273,12 @@ AND #{query.endDate} >= a.apply_date - + + AND d.node_id = #{query.nodeId} + + + AND dbo.get_plm_Approval_username (a.site, prh.workflow_id,d.node_id,a.apply_no) like #{query.sp} + diff --git a/src/main/resources/mapper/change/ChangeManagementMapper.xml b/src/main/resources/mapper/change/ChangeManagementMapper.xml index 6ffd9251..fd30c9ca 100644 --- a/src/main/resources/mapper/change/ChangeManagementMapper.xml +++ b/src/main/resources/mapper/change/ChangeManagementMapper.xml @@ -229,6 +229,12 @@ AND a.change_status = #{query.changeStatus} + + AND d.node_id = #{query.nodeId} + + + AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.change_no) like #{query.createBy2} + order by a.change_no desc diff --git a/src/main/resources/mapper/proofing/ProofingInformationMapper.xml b/src/main/resources/mapper/proofing/ProofingInformationMapper.xml index c68ae69a..1fc8b7fe 100644 --- a/src/main/resources/mapper/proofing/ProofingInformationMapper.xml +++ b/src/main/resources/mapper/proofing/ProofingInformationMapper.xml @@ -63,13 +63,10 @@ dbo.GET_BM_stage(a.site,a.test_part_no) as stage FROM plm_proofing_information as a left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId} - left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and - prh.workflow_id = d.workflow_id and a.step_id = d.step_id - left join view_Project_Part vpp - on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id + left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id + left join view_Project_Part vpp on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id left join BU b on vpp.bu_no = b.bu_no and a.site = b.site - left join plm_customer_part_info pcpi - on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no + left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no a.site = #{query.site} @@ -129,6 +126,12 @@ AND pcpi.customer_part_no like #{query.customerPartNo} + + AND d.node_id = #{query.nodeId} + + + AND dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.proofing_no) like #{query.approvalUsername} + order by a.proofing_no desc diff --git a/src/main/resources/mapper/quotation/QuotationInformationMapper.xml b/src/main/resources/mapper/quotation/QuotationInformationMapper.xml index 9e37e31b..e3f2b051 100644 --- a/src/main/resources/mapper/quotation/QuotationInformationMapper.xml +++ b/src/main/resources/mapper/quotation/QuotationInformationMapper.xml @@ -131,14 +131,11 @@ FROM plm_quotation_information as a left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId} - left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and - prh.workflow_id = d.workflow_id and a.step_id = d.step_id + left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id - left join view_Project_Part vpp - on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id + left join view_Project_Part vpp on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id left join BU b on vpp.bu_no = b.bu_no and a.site = b.site - left join plm_customer_part_info pcpi - on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no + left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no a.site = #{query.site} @@ -201,6 +198,12 @@ and pcpi.customer_part_no like #{query.customerPartNo} + + AND d.node_id = #{query.nodeId} + + + AND dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.quotation_batch_no) like #{query.approvalUsername} + order by a.quotation_batch_no desc, a.quotation_item_no diff --git a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml index bb9065b7..13e80c5e 100644 --- a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml +++ b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml @@ -2532,7 +2532,7 @@ AND b.bu_no like #{buNo} - AND d.node_id like #{nodeId} + AND d.node_id = #{nodeId} AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) like #{sp} @@ -2547,14 +2547,11 @@