|
|
|
@ -207,13 +207,13 @@
|
|
|
|
|
|
|
|
|
|
<select id="getListByFreightCodeView" resultType="com.glxp.api.res.basic.SysWorkplaceQueueViewResponse">
|
|
|
|
|
select swq.id,swq.code,swq.name,swq.layerCode ,lg.`red` , lg.`orange` , lg.`blue` , lg.`green`,bp.cpmctymc,swq.maxDrugCount
|
|
|
|
|
,swq.remindCount,ifnull(a.reCount,0) as reCount
|
|
|
|
|
,swq.remindCount,ifnull(a.reCodeCount,0) as reCount
|
|
|
|
|
from sys_workplace_queue swq
|
|
|
|
|
LEFT JOIn io_collect_led_group lg ON lg.mac = swq.mac
|
|
|
|
|
LEFT JOIn basic_udirel bu ON bu.id = swq.relId
|
|
|
|
|
LEFT JOIn basic_products bp on bu.uuid = bp.uuid and diType= 1
|
|
|
|
|
LEFT JOIn (
|
|
|
|
|
select sum(reCount) as reCount,workPlaceQueueCode from io_split_fifo_inv isfi
|
|
|
|
|
select sum(reCodeCount) as reCodeCount,workPlaceQueueCode from io_split_fifo_inv isfi
|
|
|
|
|
group by workPlaceQueueCode
|
|
|
|
|
) as a on a.workPlaceQueueCode = swq.code
|
|
|
|
|
<where>
|
|
|
|
|