From d46ca134f82fd106bfbbbd71aef7184805e6d7e7 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Fri, 19 Jan 2024 09:17:54 +0800
Subject: [PATCH] bug 修复
---
src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml b/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
index 7c9a6c5..124ed96 100644
--- a/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
+++ b/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
@@ -23,8 +23,18 @@
LEFT JOIN jczz_grid jg on jg.id = jgr.grid_id
WHERE
jpe.is_deleted = 0
- <if test="placeExt.communityCode != null and placeExt.communityCode != ''">
- and jg.community_code like concat('%',#{placeExt.communityCode},'%')
+ <if test="isAdministrator==2">
+ <choose>
+ <when test="regionChildCodesList !=null and regionChildCodesList.size()>0">
+ and jg.community_code in
+ <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=",">
+ #{code}
+ </foreach>
+ </when>
+ <otherwise>
+ and jg.community_code in ('')
+ </otherwise>
+ </choose>
</if>
<if test="placeExt.placeName != null and placeExt.placeName != ''">
and jp.place_name like concat('%',#{placeExt.placeName},'%')
@@ -32,6 +42,9 @@
<if test="placeExt.placeId != null">
and jp.id = #{placeExt.placeId}
</if>
+ <if test="placeExt.isApp != null">
+ and jpe.confirm_flag != 4
+ </if>
<if test="placeExt.houseCode != null and placeExt.houseCode != ''">
and jp.house_code = #{placeExt.houseCode}
</if>
--
Gitblit v1.9.3