From 4e31911bc283e67b81f1bb58d6dfe2aa9e8ec178 Mon Sep 17 00:00:00 2001 From: panqihua Date: Thu, 12 Jan 2023 08:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9F=A5=E8=AF=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/system/SysUserMapper.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 971e758..39d678b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -68,14 +68,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join sys_user referrer on u.referrer_id = referrer.user_id where u.del_flag = '0' - AND u.user_id = #{userId} + AND u.user_id like concat('%', #{userId}, '%') AND u.user_name like concat('%', #{userName}, '%') + + AND u.nick_name like concat('%', #{nickName}, '%') + AND u.status = #{status} + + AND u.sex = #{sex} + AND u.phonenumber like concat('%', #{phonenumber}, '%')