From e0cb0b2e90d087a0917aa75fa7e560afe3446cdf Mon Sep 17 00:00:00 2001
From: xiebin <vip_xiaobin810@163.com>
Date: Fri, 06 Feb 2026 11:40:05 +0800
Subject: [PATCH] update-用户同步
---
drone-service/drone-system/src/main/java/org/sxkj/system/mapper/RegionMapper.xml | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 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 c1f6609..6067925 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
@@ -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 的-->
@@ -155,7 +165,8 @@
FROM
blade_region
<where>
- city_code = '360800000000'
+ city_code = '360800000000'
+ and region_level > '2'
<if test="param2.status!=null">
and status = #{param1.status}
</if>
@@ -163,7 +174,7 @@
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