From 4a645468b9245d4ad62ce87a7cf7e8f8247495e1 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 04 九月 2024 03:45:06 +0800
Subject: [PATCH] 大屏工单查询调整、点位搜索调整

---
 ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
index 5be7391..881ef95 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
@@ -181,4 +181,21 @@
              AND deleted = 0
     </select>
 
+    <select id="select" resultType="com.ycl.platform.domain.entity.YwPoint">
+        SELECT
+               *
+        FROM
+             t_yw_point
+        <where>
+            <if test="keyword != null and keyword != ''">
+                AND (serial_number like concat('%', #{keyword}, '%') or point_name like concat('%', #{keyword}, '%'))
+            </if>
+            <if test="unitId != null">
+                AND unit_id = #{unitId}
+            </if>
+            AND deleted = 0
+        </where>
+
+    </select>
+
 </mapper>

--
Gitblit v1.8.0