|
|
@ -21,11 +21,11 @@ |
|
|
a.ECN_address, |
|
|
a.ECN_address, |
|
|
b.test_part_no |
|
|
b.test_part_no |
|
|
FROM plm_technical_specification_sheet a |
|
|
FROM plm_technical_specification_sheet a |
|
|
left join view_Project_final_Part b on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no |
|
|
|
|
|
LEFT JOIN plm_project_info c ON a.site = c.site AND a.project_id = c.project_id |
|
|
LEFT JOIN plm_project_info c ON a.site = c.site AND a.project_id = c.project_id |
|
|
LEFT JOIN plm_customer_information j ON j.site = c.site and j.customer_no = c.customer_id |
|
|
LEFT JOIN plm_customer_information j ON j.site = c.site and j.customer_no = c.customer_id |
|
|
|
|
|
left join view_Project_final_Part b on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no |
|
|
<where> |
|
|
<where> |
|
|
a.site = #{query.site} AND (a.ECN_flag is null or a.ECN_flag = 'N') and a.status = '已完成' |
|
|
|
|
|
|
|
|
a.site = #{query.site} AND isnull(a.ECN_flag, 'N') = 'N' and a.status = '已完成' |
|
|
<if test = "query.buNo != null and query.buNo != ''"> |
|
|
<if test = "query.buNo != null and query.buNo != ''"> |
|
|
AND b.bu_no = #{query.buNo} |
|
|
AND b.bu_no = #{query.buNo} |
|
|
</if> |
|
|
</if> |
|
|
|