From aceacde71011b310b972af4df2d7b70b61769ad6 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 19 Mar 2024 16:14:17 +0800
Subject: [PATCH] 过滤查询问题修复

---
 src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml b/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml
index 0a26fa9..0fab254 100644
--- a/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml
@@ -13,7 +13,7 @@
         LEFT JOIN jczz_police_affairs_grid jpag on jpar.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
         LEFT JOIN blade_region br on br.code = jpag.community_code
         <where>
-            <if test="vo.status != null ">
+            <if test="vo.status != null">
                 and jpar.status = #{vo.status}
             </if>
             <if test="vo.alarmDescribe != null and vo.alarmDescribe != ''">
@@ -71,14 +71,14 @@
                             <otherwise>
                                 and
                                 (
-                                jg.grid_code in ('') or jpag.community_code in in ('')
+                                jg.grid_code in ('') or jpag.community_code in ('')
                                 )
                             </otherwise>
                         </choose>
                     </otherwise>
                 </choose>
             </if>
-           and  is_deleted = 0
+           and jpar.is_deleted = 0
         </where>
     </select>
 

--
Gitblit v1.9.3