diff --git a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml index 4b6081c2..dba81d89 100644 --- a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml +++ b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml @@ -1102,7 +1102,8 @@ step_id,reject_flag,reject_step_id,mpOperator,pod left join view_Project_Part a on a.site = c.site and a.project_id = c.project_id left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no left join part p on a.Final_Part_No=p.part_no - where a.project_id=#{projectId} and a.site=#{site} and a.Test_part_no!=#{testPartNo} and a.realFlag='Y' + left join plm_technical_specification_sheet ps on a.site=ps.site and a.Test_part_no=ps.Test_part_no + where a.project_id=#{projectId} and a.site=#{site} and a.Test_part_no!=#{testPartNo} and a.realFlag='Y' and ps.Test_part_no is null