From 13f796dc50449ae2ec525ef02aaf4b49a91a564b Mon Sep 17 00:00:00 2001
From: qirong <2032486488@qq.com>
Date: 星期三, 29 十一月 2023 11:16:42 +0800
Subject: [PATCH] 修改重置

---
 src/main/resources/mapper/UserMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 2ac7dd0..2579dda 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -273,6 +273,13 @@
     where deleted=0  and user_name=#{value} limit 1
   </select>
 
+  <select id="getUserByRealName" resultMap="BaseResultMap">
+    select
+    <include refid="Base_Column_List"/>
+    from t_user
+    where deleted=0  and real_name = #{realName}
+  </select>
+
   <select id="getUserByUserNamePwd" resultMap="BaseResultMap">
     select
     <include refid="Base_Column_List"/>
@@ -324,7 +331,7 @@
     <where>
         and deleted=0
       <if test="userName != null and userName != ''">
-        and user_name like concat('%',#{userName},'%')
+        and real_name like concat('%',#{userName},'%')
       </if>
       <if test="role != null ">
         and role= #{role}

--
Gitblit v1.8.0