From 040fe24077c6a57fd0b337fd41cec00d9125eb0e Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 12 十二月 2024 00:58:52 +0800
Subject: [PATCH] 一机一档OSD优化
---
ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
index 5102e2b..f2a3daf 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformMapper.xml
@@ -10,6 +10,7 @@
<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>
@@ -45,11 +46,15 @@
TP.create_time,
TP.update_time,
TP.id,
- TP.parent_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