From 8a881a2c54673d4223425f17bc5cae8eef4e5649 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 22 Mar 2024 17:26:43 +0800
Subject: [PATCH] 反诈宣传和反诈预警查询调整

---
 src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml |    4 +++-
 1 files changed, 3 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..36d88cf 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
@@ -796,13 +796,14 @@
 
     <!--查询未绑定网格或警格的数据-->
     <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>
         <if test="type == 2">
             and jw_grid_code is null
         </if>
+        and create_time > '2024-03-20 11:00:00'
     </select>
 
     <!--按房屋标签统计-->
@@ -833,6 +834,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>

--
Gitblit v1.9.3