|
|
@ -205,7 +205,7 @@ |
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
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 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 |
|
|
LEFT JOIN WorkCenter as wc on a.site = wc.site and a.work_center_no = wc.WorkCenterNo |
|
|
left join WorkCenterResource as r1 on a.site = r.site and a.actual_resource_id = r.resourceID |
|
|
|
|
|
|
|
|
left join WorkCenterResource as r1 on a.site = r1.site and a.actual_resource_id = r1.resourceID |
|
|
<where> |
|
|
<where> |
|
|
a.site in (select site from eam_access_site where username = #{query.userName}) |
|
|
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})) |
|
|
and (a.site + '-' + a.bu_no) in (select * from dbo.query_bu(#{query.userName})) |
|
|
|