This commit is contained in:
hayu 2025-09-01 20:53:11 +08:00
parent 015c852ede
commit e37b4bfb7b
1 changed files with 1 additions and 2 deletions

View File

@ -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,