| | |
| | | and pf.payer_obj_type = '3333' |
| | | and t.community_id= #{communityId} |
| | | and t.cur_month_time < #{endDate} |
| | | and (t.receivable_amount - t.received_amount - t.discount_amount) > 0 |
| | | and t.detail_id = '-1' |
| | | group by a.room_id |
| | | ) a |
| | | </select> |
| | |
| | | left join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0' |
| | | left join pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.status_cd = '0' |
| | | where 1=1 |
| | | and t.payer_obj_type = '3333' |
| | | and pf.payer_obj_type = '3333' |
| | | and t.community_id = #{communityId} |
| | | and t.create_time > #{startDate} |
| | | and t.create_time < #{endDate} |
| | | and t.payer_obj_id in |
| | | and pf.payer_obj_id in |
| | | <foreach collection="objIds" item="item" index="index" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |