From 2b1a74f4faa5a00a294bdc6a6d956c2e009cf467 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Tue, 16 Apr 2024 15:32:09 +0800
Subject: [PATCH] 管理员过滤文章
---
src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml | 33 +++++++++++++++++++++++++++++++--
1 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml b/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
index 852a534..4c67739 100644
--- a/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
+++ b/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
@@ -24,7 +24,16 @@
<!--自定义分页列表查询-->
<select id="selectCommunityPage" resultType="org.springblade.modules.community.vo.CommunityVO">
select
- jc.*,
+ jc.id,
+ jc.street_code,
+ jc.code,
+ jc.name,
+ jc.pic_url,
+ jc.address,
+ jc.res_police_user_id,
+ jc.lng,
+ jc.lat,
+ jc.remark,
br.town_name townName
from jczz_community jc
left join blade_region br on br.code = jc.code
@@ -59,7 +68,27 @@
<!--自定义分页列表查询-->
<select id="getCommunityCodeListByUserId" resultType="java.lang.String">
select code from jczz_community
- where is_deleted = 0 and res_police_user_id = #{userId}
+ where is_deleted = 0 and res_police_user_id like concat('%',#{userId},'%')
+ </select>
+
+ <!--自定义分页列表查询-->
+ <select id="getDetail" resultType="org.springblade.modules.community.vo.CommunityVO">
+ select
+ jc.id,
+ jc.street_code,
+ jc.code,
+ jc.name,
+ jc.pic_url,
+ jc.address,
+ jc.res_police_user_id,
+ jc.lng,
+ jc.lat,
+ jc.remark,
+ br.town_name townName
+ from jczz_community jc
+ left join blade_region br on br.code = jc.code
+ where jc.is_deleted = 0
+ and jc.id = #{community.id}
</select>
--
Gitblit v1.9.3