|
|
@ -2599,13 +2599,10 @@ |
|
|
AND ( |
|
|
AND ( |
|
|
dbo.plm_get_customer_desc(c.site, c.customer_id) like #{customerDesc}) |
|
|
dbo.plm_get_customer_desc(c.site, c.customer_id) like #{customerDesc}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="excludeStatusList != null and excludeStatusList.size() > 0"> |
|
|
|
|
|
and a.status not in |
|
|
|
|
|
<foreach collection="excludeStatusList" item="statusItem" open="(" separator="," close=")"> |
|
|
|
|
|
#{statusItem} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
|
<if test="excludeStatusClause != null and excludeStatusClause != ''"> |
|
|
|
|
|
and ${excludeStatusClause} |
|
|
</if> |
|
|
</if> |
|
|
<if test="(excludeStatusList == null or excludeStatusList.size() == 0) and (statusDesc == null or statusDesc == '')"> |
|
|
|
|
|
|
|
|
<if test="(excludeStatusClause == null or excludeStatusClause == '') and (statusDesc == null or statusDesc == '')"> |
|
|
and a.status != 'death' |
|
|
and a.status != 'death' |
|
|
</if> |
|
|
</if> |
|
|
<if test="statusDesc != null and statusDesc != ''"> |
|
|
<if test="statusDesc != null and statusDesc != ''"> |
|
|
@ -2677,13 +2674,10 @@ |
|
|
dbo.plm_get_dictDataLabel('finalCustomer', c.final_customer_id, c.site) like #{customerDesc} |
|
|
dbo.plm_get_dictDataLabel('finalCustomer', c.final_customer_id, c.site) like #{customerDesc} |
|
|
) |
|
|
) |
|
|
</if> |
|
|
</if> |
|
|
<if test="excludeStatusList != null and excludeStatusList.size() > 0"> |
|
|
|
|
|
and a.status not in |
|
|
|
|
|
<foreach collection="excludeStatusList" item="statusItem" open="(" separator="," close=")"> |
|
|
|
|
|
#{statusItem} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
|
<if test="excludeStatusClause != null and excludeStatusClause != ''"> |
|
|
|
|
|
and ${excludeStatusClause} |
|
|
</if> |
|
|
</if> |
|
|
<if test="(excludeStatusList == null or excludeStatusList.size() == 0) and (statusDesc == null or statusDesc == '')"> |
|
|
|
|
|
|
|
|
<if test="(excludeStatusClause == null or excludeStatusClause == '') and (statusDesc == null or statusDesc == '')"> |
|
|
and a.status != 'death' |
|
|
and a.status != 'death' |
|
|
</if> |
|
|
</if> |
|
|
<if test="statusDesc != null and statusDesc != ''"> |
|
|
<if test="statusDesc != null and statusDesc != ''"> |
|
|
|