From b85542765637358cb1473629d0ea767ac076aec3 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 23 九月 2025 13:36:26 +0800
Subject: [PATCH] 图片压缩
---
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 51 insertions(+), 1 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
index 244d095..c35f26a 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -166,7 +166,25 @@
<if test="cameraDept != null and cameraDept != ''">and camera_dept = #{cameraDept}</if>
<if test="hybm != null and hybm != ''">and hybm = #{hybm}</if>
<if test="lxbm != null ">and lxbm = #{lxbm}</if>
-<!-- <if test="recovery != null ">and p.recovery = #{recovery}</if>-->
+ <if test="constructionType != null and constructionType != ''">
+ <choose>
+ <when test="constructionType == 'PHASE_ONE_TWO'">
+ and m.name LIKE 'DX_%'
+ </when>
+ <when test="constructionType == 'PHASE_THREE'">
+ and m.name LIKE 'LT_%'
+ </when>
+
+ <when test="constructionType == 'PHASE_FOURTH'">
+ and (
+ m.name LIKE 'DX_R%'
+ OR
+ m.name LIKE 'DX_RS%'
+ )
+ </when>
+ </choose>
+ </if>
+
${params.dataScope}
</where>
</select>
@@ -414,9 +432,41 @@
<if test="deptTag!=null">
and p.dept_tag = #{deptTag}
</if>
+ <if test="address != null">
+ and p.dept_id = #{address}
+ </if>
+ <if test="constructionType != null and constructionType != ''">
+ <choose>
+ <when test="constructionType == 'PHASE_ONE_TWO'">
+ and m.name LIKE 'DX_%'
+ </when>
+ <when test="constructionType == 'PHASE_THREE'">
+ and m.name LIKE 'LT_%'
+ </when>
+ <when test="constructionType == 'PHASE_FOURTH'">
+ and (
+ m.name LIKE 'DX_R%'
+ OR
+ m.name LIKE 'DX_RS%'
+ )
+ </when>
+ </choose>
+ </if>
${params.dataScope}
</where>
</select>
+ <select id="getAllVideo" resultType="java.lang.Long">
+ SELECT
+ IFNULL(SUM(IF((m.camera_fun_type like '%1%'), 1, 0)), 0) AS video
+ FROM t_monitor m
+ left join t_yw_point p on m.serial_number = p.serial_number
+ </select>
+
+ <select id="getIdListVideo" resultType="java.lang.String">
+ select m.serial_number
+ FROM t_monitor m where m.camera_fun_type like '%1%'
+ </select>
+
<select id="assetManagementCount" resultType="java.util.Map">
SELECT count(*) AS total,
IFNULL(SUM(IF((m.camera_fun_type like '%1%'), 1, 0)), 0) AS video,
--
Gitblit v1.8.0