|
|
@@ -364,6 +364,7 @@
|
|
364
|
364
|
LEFT JOIN business_agent_depot depot ON depot.id = num.agent_depot_id
|
|
365
|
365
|
LEFT JOIN basic_storehouse store ON store.storehouse_id = num.storehouse_id
|
|
366
|
366
|
LEFT JOIN basic_warehouse ware ON ware.warehouse_id = num.warehouse_id
|
|
|
367
|
+ WHERE 1=1 AND SUBSTR(num.storehouse_id,1,2)!='YG'
|
|
367
|
368
|
UNION
|
|
368
|
369
|
SELECT
|
|
369
|
370
|
num.id,num.agent_id agentId,num.agent_depot_id agentDepotId,num.lspz,num.nature,num.level,
|
|
|
@@ -378,6 +379,7 @@
|
|
378
|
379
|
LEFT JOIN business_agent_depot depot ON depot.id = num.agent_depot_id
|
|
379
|
380
|
LEFT JOIN basic_storehouse store ON store.storehouse_id = aStore.storehouse_id
|
|
380
|
381
|
LEFT JOIN basic_warehouse ware ON ware.warehouse_id = aWare.warehouse_id
|
|
|
382
|
+ WHERE 1=1 AND SUBSTR(num.storehouse_id,1,2)!='YG'
|
|
381
|
383
|
UNION
|
|
382
|
384
|
SELECT
|
|
383
|
385
|
num.id,num.agent_id agentId,num.agent_depot_id agentDepotId,num.lspz,num.nature,num.level,
|