linwe
2023-11-28 038f3e14174a00a111d489d5cf1b724275fe33da
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>