吉安感知网项目-后端
linwei
2026-04-02 8ac34cbae4ea8cc47194f51389a4e2dddebcc7d5
drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml
@@ -101,8 +101,18 @@
    </select>
    <select id="exportRegion" resultType="org.sxkj.system.excel.RegionExcel">
        SELECT *
        FROM blade_region ${ew.customSqlSegment}
        SELECT
            *
        FROM
            blade_region
        <where>
            <if test="regionIds!=null and regionIds.size()>0">
                and id in
                <foreach item="item" index="index" collection="regionIds" open="(" separator="," close=")">
                    #{item}
                </foreach>
            </if>
        </where>
    </select>
    <!--查询parentCode 长度少于12 的-->
@@ -125,7 +135,7 @@
            code,
            parent_code,
            ancestors,
            `name`,
            name,
            province_code,
            province_name,
            city_code,
@@ -140,7 +150,7 @@
            type,
            sort,
            remark,
            `status`,
            status,
            CASE
            WHEN
                region_level = '5' THEN town_name
@@ -158,7 +168,7 @@
                city_code = '360800000000'
                and region_level > '2'
            <if test="param2.status!=null">
                and status = #{param1.status}
                and status = #{param2.status}
            </if>
            <if test="param2.cityCode!=null and param2.cityCode!='' ">
                and code like concat(concat('%', #{param2.cityCode}),'%')