From 0c2b1e149c6c0d9d9ec78bf4f871b3cea2cbfadc Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 九月 2024 04:34:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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