From 016e47ea961d84a186db0bbd45cd6d7eaaa57bc3 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Fri, 26 Jan 2024 16:30:20 +0800
Subject: [PATCH] 文章添加小区id 字段

---
 src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml b/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
index caee645..b22f708 100644
--- a/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -130,7 +130,7 @@
         sort
         FROM blade_region
         where 1=1
-        and district_code = '361102000000'
+        and district_code = '361102'
         <if test="region.parentCode!=null and region.parentCode!=''">
             and parent_code = #{region.parentCode}
         </if>
@@ -143,7 +143,7 @@
                     </foreach>
                 </when>
                 <otherwise>
-                    and code in ('')
+                    and 1=1
                 </otherwise>
             </choose>
         </if>
@@ -155,7 +155,7 @@
         code as id,
         parent_code as parentId,
         name
-        FROM blade_region where district_code = '361102000000'
+        FROM blade_region where district_code = '361102'
         and region_level = 4
         <if test="regionCode!=null  and regionCode!=''">
             and code = #{regionCode}
@@ -165,7 +165,7 @@
         code as id,
         parent_code as parentId,
         name
-        FROM blade_region where district_code = '361102000000'
+        FROM blade_region where district_code = '361102'
         and region_level = 4
         <if test="regionCode!=null  and regionCode!=''">
             and parent_code = #{regionCode}

--
Gitblit v1.9.3