|
|
|
@ -255,7 +255,7 @@ |
|
|
|
a.work_center_no, |
|
|
|
w.WorkCenterDesc as workCenterDesc |
|
|
|
from SOIssueNotifyHeader a |
|
|
|
left join workcenter w on a.site = w.site and a.bu = a.bu_no and a.work_center_no = w.WorkCenterNo |
|
|
|
left join workcenter w on a.site = w.site and a.bu = w.bu_no and a.work_center_no = w.WorkCenterNo |
|
|
|
<where> |
|
|
|
a.site in (select site from AccessSite where userID = #{query.loginUserName}) |
|
|
|
and bu in (select bu_no from AccessBu where username = #{query.loginUserName}) |
|
|
|
@ -274,6 +274,12 @@ |
|
|
|
<if test="query.issueResult != null and query.issueResult != ''"> |
|
|
|
AND a.issueResult LIKE '%' + #{query.issueResult} + '%' |
|
|
|
</if> |
|
|
|
<if test="query.workCenterNoList != null and query.workCenterNoList.size() > 0"> |
|
|
|
AND a.work_center_no IN |
|
|
|
<foreach collection="query.workCenterNoList" item="item" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null"> |
|
|
|
AND a.NotifyDate >= #{query.startDate} |
|
|
|
</if> |
|
|
|
|