| | |
| | | select |
| | | jh.*, |
| | | concat(jh.building," ",jh.unit," ",jh.room) as address, |
| | | br.town_name as townStreetName,br.name as neiName |
| | | br.town_name as townStreetName,br.name as neiName, |
| | | jg.grid_name |
| | | from jczz_house jh |
| | | left join jczz_grid_range jgr on jgr.house_code = jh.house_code |
| | | left join jczz_grid jg on jg.id = jgr.grid_id and jg.is_deleted = 0 |
| | |
| | | <if test="house.room != null and house.room != ''"> and jh.room = #{house.room}</if> |
| | | <if test="house.buildingNo != null "> and jh.building_no = #{house.buildingNo}</if> |
| | | <if test="house.regionCode != null and house.regionCode !='' "> |
| | | and jda.nei_code like concat('%',#{house.regionCode},'%') |
| | | and jg.community_code like concat('%',#{house.regionCode},'%') |
| | | </if> |
| | | </select> |
| | | |