From 4bab272de0d048fad7b4643fea26b8773df8d3c4 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期六, 24 八月 2024 12:48:33 +0800
Subject: [PATCH] feat:新增大屏公安部数据查询条件

---
 ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
index 82d305d..cb2ef5c 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -172,7 +172,8 @@
         FROM t_work_order w
         LEFT JOIN t_yw_point p ON w.serial_number = p.serial_number AND p.deleted = 0
         WHERE w.deleted = 0
-        <if test="dataScope == 1"> AND p.province_tag = 'province' </if>
+        <if test="dataScope == 1"> AND p.province_tag = 1 </if>
+        <if test="dataScope == 3"> AND p.important_tag = 1 </if>
         <if test="deptId != null"> AND p.dept_id = #{deptId} </if>
     </select>
 
@@ -186,7 +187,8 @@
         LEFT JOIN t_yw_point p ON p.dept_id = d.dept_id AND p.deleted = 0
         LEFT JOIN t_work_order w ON w.serial_number = p.serial_number AND w.deleted = 0
         WHERE d.del_flag = 0 AND d.area IS NOT NULL
-        <if test="dataScope == 1"> AND p.province_tag = 'province' </if>
+        <if test="dataScope == 1"> AND p.province_tag = 1 </if>
+        <if test="dataScope == 3"> AND p.important_tag = 1 </if>
         <!-- <if test="deptId != null"> AND p.dept_id = #{deptId} </if> -->
         GROUP BY d.area, d.dept_id
         ORDER BY d.dept_id

--
Gitblit v1.8.0