| | |
| | | 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 |
| | |
| | | <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=","> |