From d3e36feef46d4b5d381333698977a5a913f18284 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 29 九月 2025 13:39:59 +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 946e9e9..bdf1ed6 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -166,7 +166,31 @@
             <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>
+                    <when test="constructionType == 'EASTERN_NEW_CITY'">
+                        and m.name LIKE 'DX_RD%'
+                    </when>
+                    <when test="constructionType == 'YAN_TAN_PHASE_TWO_FACE'">
+                        and m.name LIKE 'DX_R2%'
+                    </when>
+                </choose>
+            </if>
+
             ${params.dataScope}
         </where>
     </select>
@@ -414,6 +438,32 @@
             <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>
+                    <when test="constructionType == 'EASTERN_NEW_CITY'">
+                        and m.name LIKE 'DX_RD%'
+                    </when>
+                    <when test="constructionType == 'YAN_TAN_PHASE_TWO_FACE'">
+                        and m.name LIKE 'DX_R2%'
+                    </when>
+                </choose>
+            </if>
             ${params.dataScope}
         </where>
     </select>

--
Gitblit v1.8.0