|
|
|
@ -181,6 +181,7 @@ |
|
|
|
a.action_date, |
|
|
|
a.action_by, |
|
|
|
a.pass_qty, |
|
|
|
wc.WorkCenterDesc as work_center_desc, |
|
|
|
a.not_pass_qty, |
|
|
|
b.item_no, |
|
|
|
b.item_desc, |
|
|
|
@ -201,6 +202,7 @@ |
|
|
|
left join WorkCenterResource as r on a.site = r.site and a.resource_id = r.resourceID |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
left join UM as um on a.site = um.site and a.um_id = um.UMID |
|
|
|
LEFT JOIN WorkCenter as wc on a.site = wc.site and a.work_center_no = wc.WorkCenterNo |
|
|
|
<where> |
|
|
|
a.site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
and (a.site + '-' + a.bu_no) in (select * from dbo.query_bu(#{query.userName})) |
|
|
|
@ -252,6 +254,9 @@ |
|
|
|
<if test="query.endDate2 != null"> |
|
|
|
AND #{query.endDate2} >= a.task_date |
|
|
|
</if> |
|
|
|
<if test = "query.workCenterNo != null and query.workCenterNo != ''"> |
|
|
|
AND a.work_center_no = #{query.workCenterNo} |
|
|
|
</if> |
|
|
|
<if test = "query.itemResult != null and query.itemResult != ''"> |
|
|
|
AND b.item_result = #{query.itemResult} |
|
|
|
</if> |
|
|
|
|