linwei
2024-01-02 31b6aefacbee9dde61be6afcb7c6dbbf7c6baa7d
src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
@@ -134,7 +134,8 @@
        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
@@ -166,7 +167,7 @@
        <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>