|
|
@ -201,7 +201,7 @@ |
|
|
LEFT JOIN PART b ON a.site = b.Site AND a.part_no = b.PartNo |
|
|
LEFT JOIN PART b ON a.site = b.Site AND a.part_no = b.PartNo |
|
|
LEFT JOIN UM ON b.Site = UM.Site AND b.UMID = UM.UMID |
|
|
LEFT JOIN UM ON b.Site = UM.Site AND b.UMID = UM.UMID |
|
|
LEFT JOIN WareHouse W ON a.site = W.Site AND a.warehouse_id = W.WareHouseID |
|
|
LEFT JOIN WareHouse W ON a.site = W.Site AND a.warehouse_id = W.WareHouseID |
|
|
LEFT JOIN Location L ON a.site = L.Site AND a.location_id = L.LocationName |
|
|
|
|
|
|
|
|
LEFT JOIN Location L ON a.site = L.Site AND a.location_id = L.LocationID |
|
|
<where> |
|
|
<where> |
|
|
a.site in (select site from AccessSite where userID = #{query.userName}) |
|
|
a.site in (select site from AccessSite where userID = #{query.userName}) |
|
|
and a.status != '出库' |
|
|
and a.status != '出库' |
|
|
|