zhongrj
2024-04-03 b42bdf8eb9baa28c6d2e363ffaebadfc62d2025a
src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -251,6 +251,10 @@
    <!--查询公安相关的区域数据-->
    <select id="getPoliceList" resultType="org.springblade.modules.system.entity.Region">
        SELECT id as code,parentId as parent_code,name,'' as ancestors,null as region_level,1 as sort FROM police_region
        where 1=1
        <if test="communityCode!=null and communityCode!=''">
            and id like concat('%',#{communityCode},'%')
        </if>
    </select>