| | |
| | | <if test="feeId !=null and feeId != ''"> |
| | | and t.fee_id= #{feeId} |
| | | </if> |
| | | <if test="pfYear !=null and pfYear != ''"> |
| | | and t.pf_year= #{pfYear} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | |
| | | LEFT JOIN f_floor ff on bu.floor_id = ff.floor_id and ff.status_cd = '0' |
| | | left join owner_car oc on t.payer_obj_id = oc.car_id and t.payer_obj_type = '6666' and oc.status_cd = '0' and oc.car_type_cd='1001' |
| | | left join contract con on t.payer_obj_id = con.contract_id and t.payer_obj_type = '7777' and con.status_cd = '0' |
| | | where t.end_time > NOW() |
| | | where 1=1 |
| | | <if test="feeEndTime !=null and feeEndTime != ''"> |
| | | and t.end_time > #{feeEndTime} |
| | | </if> |
| | | and t.state = '2008001' |
| | | and t.status_cd = '0' |
| | | <if test="configId !=null and configId != ''"> |
| | |
| | | </if> |
| | | <if test="feeId !=null and feeId != ''"> |
| | | and t.fee_id= #{feeId} |
| | | </if> |
| | | <if test="floorNum !=null and floorNum != ''"> |
| | | and ff.floor_num = #{floorNum} |
| | | </if> |
| | | <if test="unitNum !=null and unitNum != ''"> |
| | | and bu.unit_num = #{unitNum} |
| | | </if> |
| | | <if test="roomNum !=null and roomNum != ''"> |
| | | and br.room_num = #{roomNum} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | LEFT JOIN f_floor ff on bu.floor_id = ff.floor_id and ff.status_cd = '0' |
| | | left join owner_car oc on t.payer_obj_id = oc.car_id and t.payer_obj_type = '6666' and oc.status_cd = '0' and oc.car_type_cd='1001' |
| | | left join contract con on t.payer_obj_id = con.contract_id and t.payer_obj_type = '7777' and con.status_cd = '0' |
| | | where t.end_time > NOW() |
| | | where 1=1 |
| | | <if test="feeEndTime !=null and feeEndTime != ''"> |
| | | and t.end_time > #{feeEndTime} |
| | | </if> |
| | | and t.state = '2008001' |
| | | and t.status_cd = '0' |
| | | <if test="configId !=null and configId != ''"> |
| | |
| | | <if test="feeId !=null and feeId != ''"> |
| | | and t.fee_id= #{feeId} |
| | | </if> |
| | | <if test="floorNum !=null and floorNum != ''"> |
| | | and ff.floor_num = #{floorNum} |
| | | </if> |
| | | <if test="unitNum !=null and unitNum != ''"> |
| | | and bu.unit_num = #{unitNum} |
| | | </if> |
| | | <if test="roomNum !=null and roomNum != ''"> |
| | | and br.room_num = #{roomNum} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |