|
|
@@ -114,9 +114,9 @@
|
|
|
and odrg.way = 'HOLD'
|
|
|
group by odrg.deviceId)
|
|
|
select ods.areaStaffId as areaStaffId, sum(ds.stockNumber) as totalNum
|
|
|
- from yr_operators_device as od
|
|
|
- left join device_stock as ds on ds.deviceId = od.id
|
|
|
- left join yr_operators_device_site as ods on ds.deviceId = ods.deviceId
|
|
|
+ from device_stock as ds
|
|
|
+ left join yr_operators_device as od on ds.deviceId = od.id
|
|
|
+ left join yr_operators_device_site as ods on ds.deviceId = ods.deviceId
|
|
|
where od.putStatus = 'USED'
|
|
|
group by ods.areaStaffId
|
|
|
</select>
|