guoyujia před 1 rokem
rodič
revize
c633d48568

+ 2 - 2
src/main/resources/mybatis/system/SysUserMapper.xml

@@ -321,8 +321,8 @@
         SELECT * FROM sys_user
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
 			del_flag = '0' and user_type='02' and user_id !=1 and user_id != 2
-			<if test="userName != null  and userName != ''"> AND user_name like concat('', #{userName}, '%')</if>
-			<if test="nickName != null  and nickName != ''"> AND nick_name like concat('', #{nickName}, '%')</if>
+			<if test="userName != null  and userName != ''"> AND user_name like concat('%', #{userName}, '%')</if>
+			<if test="nickName != null  and nickName != ''"> AND nick_name like concat('%', #{nickName}, '%')</if>
         </trim>
     </select>