diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/lease/LeaseTaskMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/lease/LeaseTaskMapper.xml index abe41562..95011654 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/lease/LeaseTaskMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/lease/LeaseTaskMapper.xml @@ -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,