diff --git a/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java b/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java index 45b5cd8d..692b2743 100644 --- a/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java +++ b/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java @@ -2136,6 +2136,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl - d.is_reject, - d.node_id, - d.node_name, - dbo.plm_get_user_display(d.site, d.create_by) as node_create_by, - dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.quotation_batch_no) as approvalUsername, - + d.is_reject, + d.node_id, + d.node_name, + dbo.plm_get_user_display(d.site, d.create_by) as node_create_by, + dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.quotation_batch_no) as approvalUsername, vpp.bu_no, b.bu_desc, vpp.final_part_no, pcpi.customer_part_no 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_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 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 - a.site = #{query.site} - and a.quotation_no not in (select inside_inquiry_no from plm_quote where site = #{query.site}) + a.site = #{query.site} and d.node_id = '400' + and a.quotation_no not in (select inside_inquiry_no from plm_quote where site = #{query.site}) and vpp.bu_no in (select bu_No from dbo.Get_Now_BU_chooseAble(a.site, #{query.createBy}))