This commit is contained in:
parent
015c852ede
commit
e37b4bfb7b
|
|
@ -1167,13 +1167,12 @@
|
||||||
SELECT
|
SELECT
|
||||||
#{typeId} as typeId,
|
#{typeId} as typeId,
|
||||||
COALESCE(SUM(combined.pendingOutNum), 0) as pendingOutNum,
|
COALESCE(SUM(combined.pendingOutNum), 0) as pendingOutNum,
|
||||||
COALESCE(mt.storage_num, 0) as storageNum,
|
|
||||||
CASE mt.manage_type
|
CASE mt.manage_type
|
||||||
WHEN 0 THEN
|
WHEN 0 THEN
|
||||||
IFNULL(subquery0.num, 0)
|
IFNULL(subquery0.num, 0)
|
||||||
ELSE
|
ELSE
|
||||||
IFNULL(mt.storage_num, 0)
|
IFNULL(mt.storage_num, 0)
|
||||||
END as storage_num
|
END as storageNum
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
lad.type_id as typeId,
|
lad.type_id as typeId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue