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