From 8f83a63bc5f046e34a1a06bcf6f1a8241c7277ac Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 24 九月 2024 12:14:11 +0800
Subject: [PATCH] 增加部级考核标签

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
index b18b4d7..b6c5b25 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -98,7 +98,7 @@
 
     <select id="selectTMonitorList" resultType="com.ycl.platform.domain.vo.TMonitorVO">
         select m.id, m.serial_number, name, site_type, mac_addr, ip, camera_fun_type, longitude, latitude,
-        camera_capture_area, p.online as onState, civil_code, d.dept_id, d.dept_name, d.area, p.province_tag,
+        camera_capture_area, p.online as onState, civil_code, d.dept_id, d.dept_name, d.area, p.province_tag,p.dept_tag,
         IF(COUNT(w.id) OVER() > 0, '鏄�', '鍚�') AS error, u.unit_name,p.recovery_time,p.reason,p.start_time,p.end_time,w.work_order_no
         from t_monitor m
         left join t_yw_point p on m.serial_number = p.serial_number and p.deleted = 0
@@ -119,6 +119,7 @@
                 or u.unit_name like concat('%', #{name}, '%'))
             </if>
             <if test="provinceTag != null ">and p.province_tag = #{provinceTag}</if>
+            <if test="deptTag != null ">and p.dept_tag = #{deptTag}</if>
             <if test="siteType != null ">and site_type = #{siteType}</if>
             <if test="macAddr != null  and macAddr != ''">and mac_addr = #{macAddr}</if>
             <if test="ip != null  and ip != ''">and ip = #{ip}</if>
@@ -162,7 +163,7 @@
         camera_capture_area, on_state, civil_code, integrated_device, camera_brand, address, net_working,
         public_security, installed_time, management_unit, mu_contact_info, storage_days
         , monitor_azimuth, scene_photo_addr, model, site_vulgo, camera_type, camera_light_type, encoded_format,
-        camera_dept, hybm, lxbm,d.dept_id, d.dept_name,p.province_tag from t_monitor m
+        camera_dept, hybm, lxbm,d.dept_id, d.dept_name,p.province_tag,p.dept_tag from t_monitor m
         left join t_yw_point p on m.serial_number = p.serial_number
         left join sys_dept d on p.dept_id = d.dept_id
     </select>
@@ -348,6 +349,9 @@
             <if test="provinceTag!=null">
                 and p.province_tag = #{provinceTag}
             </if>
+            <if test="deptTag!=null">
+                and p.dept_tag = #{deptTag}
+            </if>
             ${params.dataScope}
         </where>
     </select>

--
Gitblit v1.8.0