zhongrj
2023-11-27 56bc68fc3f207a37ff170a503c6cf1f2f061abbe
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.xml
@@ -31,5 +31,23 @@
        </if>
    </select>
    <!--自定义分页-->
    <select id="getDistrictTree" resultType="org.springblade.common.node.TreeStringNode">
        SELECT
        code as id,
        parent_code as parentId,
        name
        FROM blade_region where district_code = '361102'
        union all
        (
        select
        id,
        community_code as parentId,
        name
        from jczz_district
        where is_deleted = 0
        )
    </select>
</mapper>