|
|
@ -25,7 +25,7 @@ |
|
|
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 |
|
|
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 isnull(a.ECN_flag, 'N') = 'N' and a.status = '已完成' and isnull(a.show_in_query_flag, 'Y') = 'Y' |
|
|
|
|
|
|
|
|
a.site = #{query.site} AND isnull(a.ECN_flag, 'N') = 'N' and a.status <![CDATA[<>]]> 'cg' and isnull(a.show_in_query_flag, 'Y') = 'Y' |
|
|
<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> |
|
|
@ -53,6 +53,9 @@ |
|
|
<if test = "query.oriCodeNo != null and query.oriCodeNo != ''"> |
|
|
<if test = "query.oriCodeNo != null and query.oriCodeNo != ''"> |
|
|
AND a.ori_code_no like #{query.oriCodeNo} |
|
|
AND a.ori_code_no like #{query.oriCodeNo} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = "query.status != null and query.status != ''"> |
|
|
|
|
|
AND a.status = #{query.status} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|