Browse Source

优化欠费查询sql

wuxw 5 years ago
parent
commit
4809de45d4

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

@@ -466,6 +466,7 @@
         t.deadline_time deadlineTime,
         pf.payer_obj_id payObjId
         from bill_owe_fee t
+        inner join bill b on t.bill_id = b.bill_id and b.community_id = t.community_id and b.cur_bill = 'T'
         left join pay_fee pf on t.fee_id = pf.fee_id and t.community_id = pf.community_id and pf.status_cd = '0'
         where 1 =1
         <if test="oweId !=null and oweId != ''">