From a99b32aee78f130d44f5353b30b001f96c84977a Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期四, 17 八月 2023 18:45:29 +0800
Subject: [PATCH] 改bug

---
 server/src/main/resources/mappers/UserDeviceExtMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/src/main/resources/mappers/UserDeviceExtMapper.xml b/server/src/main/resources/mappers/UserDeviceExtMapper.xml
index 7259c9f..6b93738 100644
--- a/server/src/main/resources/mappers/UserDeviceExtMapper.xml
+++ b/server/src/main/resources/mappers/UserDeviceExtMapper.xml
@@ -201,7 +201,7 @@
         AND `umodel`.`ROOT_DEPART_ID` = #{umodelRootDepartId}
       </if>
       <if test="umodelName != null and umodelName != ''">
-        AND `umodel`.`NAME` = #{umodelName}
+        AND `umodel`.`NAME` like concat('%', #{umodelName} , '%')
       </if>
       <if test="umodelPhone != null and umodelPhone != ''">
         AND `umodel`.`PHONE` = #{umodelPhone}

--
Gitblit v1.9.3