| | |
| | | t.room_sub_type,t.room_rent,t.room_area,t.room_sub_type roomSubType,t.room_rent roomRent,t.room_area roomArea |
| | | from building_room t |
| | | left join building_unit bu on bu.unit_id = t.unit_id |
| | | left join f_floor ff on ff.floor_id = bu.floor_id |
| | | where 1 =1 |
| | | <if test="floorNum !=null and floorNum != ''"> |
| | | and ff.floor_num = #{floorNum} |
| | | </if> |
| | | <if test="feeCoefficient !=null and feeCoefficient != ''"> |
| | | and t.fee_coefficient= #{feeCoefficient} |
| | | </if> |
| | |
| | | </if> |
| | | <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} |
| | |
| | | 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="roomNum !=null and roomNum != ''"> |
| | | and t.room_num= #{roomNum} |
| | | </if> |
| | | <if test="roomNumIsNull != null"> |
| | | and t.room_num = '' |
| | | </if> |
| | | <if test="roomNumLike !=null and roomNumLike != ''"> |
| | | and t.`room_num` like concat('%', #{roomNumLike},'%') |
| | | </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=","> |