From 8dac3a3c993ef006d4765624e046577217d1a898 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 28 十一月 2023 21:27:09 +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