Przeglądaj źródła

实时质控拦截物品分布

chenshudong 4 tygodni temu
rodzic
commit
b60bcf9af0

+ 1 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerRealtimeInterceptionMapper.xml

@@ -95,7 +95,7 @@
95
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
95
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
96
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">
96
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">
97
         select item_name name,
97
         select item_name name,
98
-        count(1) total
98
+        coalesce(sum(item_quantity), 0) total
99
         from ledger_realtime_interception
99
         from ledger_realtime_interception
100
         where del_flag = '0'
100
         where del_flag = '0'
101
         <if test="deptId != null">and dept_id = #{deptId}</if>
101
         <if test="deptId != null">and dept_id = #{deptId}</if>