zhongrj
2023-12-28 daef9edffb73d542ff1eba4beb215ffc7b306254
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -90,20 +90,23 @@
            and bu.real_name != ""
            and bu.phone != ""
        </if>
        <if test="place.regionCode != null and place.regionCode !='' ">
            and jg.community_code like concat('%',#{place.regionCode},'%')
        </if>
        order by jpe.create_time desc
    </select>
    <!--查询场所集合信息-->
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeStringNode" >
        select jp.id,
        SELECT jp.id,
               jp.house_code      houseCode,
               jp.place_name as   name,
               jda.doorplate_type doorplateType,
               jda.address_level  addressLevel,
               jda.nei_name  neiName,
               false         as   hasChildren
        from jczz_place jp
                 left join jczz_doorplate_address jda on jp.house_code = jda.address_code
               jp.place_name AS   NAME,
               br.name neiName,
               FALSE         AS   hasChildren
        FROM jczz_place jp
                 LEFT JOIN jczz_grid_range jgr ON jp.house_code = jgr.house_code
                 LEFT JOIN jczz_grid jg on jg.id = jgr.grid_id
                 LEFT JOIN blade_region br on br.code = jg.community_code
        where 1 = 1
          and jp.is_deleted = 0
          and jp.principal_user_id = #{userId}