ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -210,10 +210,9 @@ FROM t_street ts LEFT JOIN t_house th ON ts.id = th.street_id LEFT JOIN t_contract tc ON tc.house_id = th.id LEFT JOIN t_bill tb ON tc.id = tb.contract_id LEFT JOIN t_contract tc ON tc.house_id = th.id AND tc.pay_type = 2 LEFT JOIN t_bill tb ON tc.id = tb.contract_id AND tb.pay_fees_status != 5 <where> tc.pay_type = 2 AND tb.pay_fees_status != 5 <if test="businessDeptId != 0"> AND th.business_dept_id = #{businessDeptId} </if>