zhongrj
2024-02-02 30f7705239334a3df2c7a296fb11abd1b28355cb
src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -248,4 +248,22 @@
        )
    </select>
    <!--查询公安对应的辖区树-->
    <select id="getPoliceTreeList" resultType="org.springblade.common.node.TreeStringNode">
        SELECT
            CODE AS id,
            parent_code AS parentId,
            NAME
        FROM jczz_police_station
        WHERE is_deleted = 0
        UNION ALL
        SELECT
            jw_grid_code AS id,
            pcs_code AS parentId,
            community_name AS NAME
        FROM jczz_police_affairs_grid
        WHERE is_deleted = 0  AND pcs_code IS NOT NULL
    </select>
</mapper>