java110 5 anni fa
parent
commit
1e4dd20ec6

+ 1 - 0
java110-db/src/main/resources/mapper/fee/FeeReceiptServiceDaoImplMapper.xml

@@ -272,6 +272,7 @@
     <select id="queryFeeReceiptsCount" parameterType="Map" resultType="Map">
         select count(1) count
         from fee_receipt t
+        left join fee_receipt_detail frd on t.receipt_id = frd.receipt_id and frd.status_cd = '0'
         where 1 =1
         <if test="amount !=null and amount != ''">
             and t.amount= #{amount}