|
|
|
@ -1229,13 +1229,20 @@ step_id,reject_flag,reject_step_id,mpOperator,pod |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getFinalPartData" resultType="PlmProjectPartData"> |
|
|
|
Select a.Final_Part_No,a.Test_part_no,a.Active, a.Part_desc ,a.project_id,pcpi.customer_part_no,a.bu_no |
|
|
|
Select |
|
|
|
a.Final_Part_No, |
|
|
|
a.Test_part_no, |
|
|
|
a.Active, |
|
|
|
a.Part_desc, |
|
|
|
a.project_id, |
|
|
|
pcpi.customer_part_no, |
|
|
|
a.bu_no |
|
|
|
from view_Project_final_Part a |
|
|
|
left join plm_project_info c 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 plm_project_info c 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 |
|
|
|
<where> |
|
|
|
and a.site=#{query.site} |
|
|
|
|
|
|
|
<if test="query.projectId!= null and query.projectId != ''"> |
|
|
|
AND a.project_id like #{query.projectId} |
|
|
|
</if> |
|
|
|
@ -1251,7 +1258,7 @@ step_id,reject_flag,reject_step_id,mpOperator,pod |
|
|
|
<if test="query.partDesc!= null and query.partDesc != ''"> |
|
|
|
AND a.Part_desc like #{query.partDesc} |
|
|
|
</if> |
|
|
|
and a.RealFlag='Y' |
|
|
|
and a.RealFlag = 'Y' |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
|