|
|
|
@ -50,7 +50,7 @@ |
|
|
|
p.project_no, |
|
|
|
p.project_name, |
|
|
|
p.project_desc, |
|
|
|
p.customer_no, |
|
|
|
pp.customer_no, |
|
|
|
p.bu_no, |
|
|
|
p.c_project_region, |
|
|
|
pp.project_manager, |
|
|
|
@ -77,7 +77,7 @@ |
|
|
|
) latest_delivery_package |
|
|
|
LEFT JOIN plm_project_info_tracking p ON t.project_id = p.id |
|
|
|
LEFT JOIN plm_project_part_tracking pp ON t.project_part_id = pp.id |
|
|
|
LEFT JOIN plm_customer_information c ON p.site = c.site AND p.customer_no = c.customer_no |
|
|
|
LEFT JOIN plm_customer_information c ON pp.site = c.site AND pp.customer_no = c.customer_no |
|
|
|
<where> |
|
|
|
<if test="query.userName != null and query.userName != ''"> |
|
|
|
p.site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
@ -111,11 +111,17 @@ |
|
|
|
<if test="query.partDesc != null and query.partDesc != ''"> |
|
|
|
and UPPER(pp.part_desc) like '%' + UPPER(#{query.partDesc}) + '%' |
|
|
|
</if> |
|
|
|
<if test="query.dryWetType != null and query.dryWetType != ''"> |
|
|
|
and pp.dry_wet_type = #{query.dryWetType} |
|
|
|
</if> |
|
|
|
<choose> |
|
|
|
<!-- __EMPTY__ 为分类筛选“空”的查询专用标识。 --> |
|
|
|
<when test="query.dryWetType == '__EMPTY__'"> |
|
|
|
and (pp.dry_wet_type IS NULL OR pp.dry_wet_type = '') |
|
|
|
</when> |
|
|
|
<when test="query.dryWetType != null and query.dryWetType != ''"> |
|
|
|
and pp.dry_wet_type = #{query.dryWetType} |
|
|
|
</when> |
|
|
|
</choose> |
|
|
|
<if test="query.customerNo != null and query.customerNo != ''"> |
|
|
|
and UPPER(p.customer_no) like '%' + UPPER(#{query.customerNo}) + '%' |
|
|
|
and UPPER(pp.customer_no) like '%' + UPPER(#{query.customerNo}) + '%' |
|
|
|
</if> |
|
|
|
<if test="query.customerDesc != null and query.customerDesc != ''"> |
|
|
|
and UPPER(c.customer_desc) like '%' + UPPER(#{query.customerDesc}) + '%' |
|
|
|
@ -649,7 +655,7 @@ |
|
|
|
p.project_no, |
|
|
|
p.project_name, |
|
|
|
p.project_desc, |
|
|
|
p.customer_no, |
|
|
|
pp.customer_no, |
|
|
|
p.bu_no, |
|
|
|
pp.test_part_no, |
|
|
|
pp.part_desc, |
|
|
|
|