From fdcdd41fba7874c045766e3dea54d56d70df73ef Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 12 五月 2025 10:06:50 +0800
Subject: [PATCH] (部级录像可用率,重点录像可用率,录像可用率)计算可用率

---
 ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
index 0d6e2c9..f2a3daf 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
@@ -5,12 +5,12 @@
     <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
     <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.PlatformVO">
         <result column="platform_name" property="platformName" />
-        <result column="platform_contact" property="platformContact" />
-        <result column="platform_contact_phone" property="platformContactPhone" />
         <result column="status" property="status" />
         <result column="remark" property="remark" />
+        <result column="area" property="area" />
         <result column="create_time" property="createTime" />
         <result column="update_time" property="updateTime" />
+        <result column="sub_platform_name" property="subPlatformName" />
     </resultMap>
 
 
@@ -22,10 +22,10 @@
     <select id="getById" resultMap="BaseResultMap">
         SELECT
             TP.platform_name,
-            TP.platform_contact,
-            TP.platform_contact_phone,
+            TP.platform_ip,
             TP.status,
             TP.remark,
+            TP.area,
             TP.create_time,
             TP.update_time,
             TP.id
@@ -39,17 +39,22 @@
     <select id="getPage" resultMap="BaseResultMap">
         SELECT
             TP.platform_name,
-            TP.platform_contact,
-            TP.platform_contact_phone,
+            TP.platform_ip,
             TP.status,
+            TP.area,
             TP.remark,
             TP.create_time,
             TP.update_time,
-            TP.id
+            TP.id,
+            TP.parent_id,
+            TP.sub_platform_name
         FROM
             t_platform TP
         WHERE
             TP.deleted = 0
+            <if test="query.keyword != null and query.keyword != ''">
+                AND (TP.platform_name like concat('%', #{query.keyword}, '%') or TP.platform_ip like concat('%', #{query.keyword}, '%'))
+            </if>
     </select>
 
 </mapper>

--
Gitblit v1.8.0