소스 검색

实时质控拦截物品分布

chenshudong 4 주 전
부모
커밋
b60bcf9af0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerRealtimeInterceptionMapper.xml

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

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