From 1abd541be8d02dabaa77d3c6d2fecde5ef0e4b5b Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Thu, 29 Jan 2026 17:02:50 +0800
Subject: [PATCH] 区划改造

---
 drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml b/drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml
index 8a1e459..81ffd85 100644
--- a/drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml
+++ b/drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml
@@ -118,6 +118,7 @@
         FROM blade_region
         where length(parent_code) &lt; 12 limit 0,#{size}
     </select>
+
     <select id="selectRegionPage" resultType="org.sxkj.system.vo.RegionVO">
         SELECT
             id,
@@ -147,19 +148,23 @@
                 region_level = '4' THEN district_name
             WHEN
                 region_level = '3' THEN city_name
+            WHEN
+                region_level = '2' THEN province_name
             ELSE NULL
             END AS parent_name
         FROM
             blade_region
         <where>
+                city_code = '360800000000'
+                and region_level > '2'
             <if test="param2.status!=null">
                 and status = #{param1.status}
             </if>
             <if test="param2.cityCode!=null and param2.cityCode!='' ">
-                and city_code like concat(concat('%', #{param2.cityCode}),'%')
+                and code like concat(concat('%', #{param2.cityCode}),'%')
             </if>
             <if test="param2.districtName!=null and param2.districtName!=''">
-                and district_name like concat(concat('%', #{param2.districtName}),'%')
+                and name like concat(concat('%', #{param2.districtName}),'%')
             </if>
             <if test="param2.parentName!=null and param2.parentName!=''">
                 and (

--
Gitblit v1.9.3