From 9f1bbc41aa1ac91f1d7e7deeb85476796e95709c Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Tue, 18 Jun 2024 14:56:51 +0800
Subject: [PATCH] 警情处置+二手交易

---
 src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 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 ed1ce77..3b056d9 100644
--- a/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/police/mapper/PoliceAlarmRecordsMapper.xml
@@ -10,7 +10,8 @@
     <select id="selectPoliceAlarmRecordsPage" resultMap="policeAlarmRecordsResultMap">
         select
         jpar.*,
-        bdb.dict_value as alarmTypeName
+        bdb.dict_value as alarmTypeName,
+        jpag.pcs_name
         from jczz_police_alarm_records jpar
         LEFT JOIN jczz_grid jg on jg.grid_code = jpar.grid_code and jg.is_deleted = 0
         LEFT JOIN jczz_police_affairs_grid jpag on jpar.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
@@ -26,6 +27,10 @@
             <if test="vo.policeName != null and vo.policeName != ''">
                 and jpar.police_name like concat('%',#{vo.policeName},'%')
             </if>
+
+            <if test="vo.pcsName != null and vo.pcsName != ''">
+                and jpag.pcs_name like concat('%',#{vo.pcsName},'%')
+            </if>
             <if test="vo.startTime != null and vo.startTime != ''">
                 and date_format(jpar.create_time,'%Y-%m-%d') &gt;= #{vo.startTime}
             </if>

--
Gitblit v1.9.3