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/house/mapper/HouseMapper.xml | 35 ++++++++++++++++++++++++++++++++++-
1 files changed, 34 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
index fda77a9..5de9fde 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
@@ -796,7 +796,7 @@
<!--查询未绑定网格或警格的数据-->
<select id="getNotBindGridOrJwGridList" resultType="org.springblade.modules.house.entity.HouseEntity">
- select lng,lat from jczz_house where is_deleted = 0 and lng != ''
+ select id,lng,lat from jczz_house where is_deleted = 0 and lng != ''
<if test="type == 1">
and grid_code is null
</if>
@@ -833,6 +833,7 @@
<if test="house.roleName=='wgy'">
<choose>
<when test="gridCodeList !=null and gridCodeList.size()>0">
+ and jh.grid_code in
<foreach collection="gridCodeList" item="code" open="(" close=")" separator=",">
#{code}
</foreach>
@@ -889,5 +890,37 @@
) b on a.label_name =b.labelName
</select>
+ <!--查询对应的社区编号-->
+ <select id="getCommunityCode" resultType="java.lang.String">
+ SELECT
+ jpag.community_code
+ FROM
+ jczz_house jh
+ LEFT JOIN jczz_police_affairs_grid jpag on jh.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
+ where jh.is_deleted = 0
+ and jh.id = #{id}
+ </select>
+
+ <!--查询所有房屋总数-->
+ <select id="getAllListTotal" resultType="java.lang.Integer">
+ SELECT
+ count(*)
+ FROM
+ jczz_house jh
+ where jh.is_deleted = 0
+ </select>
+
+ <!--查询所有的房屋-->
+ <select id="getAllList" resultType="org.springblade.modules.house.vo.HouseVO">
+ SELECT
+ jh.*,
+ jpag.community_code
+ FROM
+ jczz_house jh
+ LEFT JOIN jczz_police_affairs_grid jpag on jh.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
+ where jh.is_deleted = 0
+ limit #{i},#{size}
+ </select>
+
</mapper>
--
Gitblit v1.9.3