| | |
| | | <if test="roomId !=null and roomId != ''"> |
| | | and t.room_id= #{roomId} |
| | | </if> |
| | | <if test="doorRoomNum !=null and doorRoomNum != ''"> |
| | | and t.door_room_num= #{doorRoomNum} |
| | | </if> |
| | | <if test="propertyType !=null and propertyType != ''"> |
| | | and t.property_type= #{propertyType} |
| | | </if> |
| | | <if test="propertyAddress !=null and propertyAddress != ''"> |
| | | and t.property_address= #{propertyAddress} |
| | | </if> |
| | | <if test="roadName !=null and roadName != ''"> |
| | | and t.road_name= #{roadName} |
| | | </if> |
| | |
| | | left join building_owner bo on bo.owner_id = borr.owner_id |
| | | WHERE 1 =1 |
| | | <if test="communityId !=null and communityId != ''"> |
| | | AND t.`community_id` = #{communityId} |
| | | AND t.`community_id` in (#{communityId},'9999') |
| | | </if> |
| | | and t.status_cd ='0' |
| | | <if test="floorId !=null and floorId != ''"> |
| | |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds != null"> |
| | | and t.community_id in |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="roadName !=null and roadName != ''"> |
| | | AND t.`road_name` = #{roadName} |
| | | </if> |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | <if test="roomSubType !=null and roomSubType != ''"> |
| | | and t.room_sub_type= #{roomSubType} |
| | | </if> |
| | | <if test="propertyType !=null and propertyType != ''"> |
| | | and t.property_type= #{propertyType} |
| | | </if> |
| | | <if test="states != null"> |
| | | and t.state in |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |