select id, house_code, tenant_relationship, rental_time, due_time, termination_time, house_status, rental_use, audit_status, file_urls, create_user, create_time, update_user, update_time, remark, is_deleted from jczz_house_rental and jh.grid_code in #{code} and jh.grid_code in ('') and jpag.community_code in #{code} and jpag.community_code in ('') and ( jg.grid_code in #{code} or jpag.community_code in #{code} ) and ( jg.grid_code in ('') or jpag.community_code in ('') ) and jda.address_code in #{houseCode} and jda.address_code in ('')