|
|
|
@ -16,7 +16,7 @@ |
|
|
|
left join repair_TransDetail B on A.site = B.site and A.TransNo = B.TransNo and a.bu_no=b.bu_no |
|
|
|
left join part_spare C on A.site = C.site and C.part_no = B.PartNo and a.bu_no=c.bu_no |
|
|
|
LEFT JOIN view_custdev_mes_vendor vcmv on vcmv.supplier_id = A.PartnerID |
|
|
|
left join accessBu D on A.site=D.site and A.citem_code=d.bu_no and D.username=#{query.username} |
|
|
|
left join accessBu D on A.site=D.site and A.bu_no=d.bu_no and D.username=#{query.username} |
|
|
|
<where> |
|
|
|
A.site = #{query.site} |
|
|
|
and B.BatchNo is not null |
|
|
|
|