From ae8dfb86654fd98592e57bbfe820b7c2275ce8a5 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 25 九月 2025 19:00:47 +0800 Subject: [PATCH] usrer_name不进行模糊查询 --- smartor/src/main/resources/mapper/smartor/SysUserMapper.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml index 2725d6c..2e6237e 100644 --- a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml @@ -125,7 +125,7 @@ AND u.user_id = #{userId} </if> <if test="userName != null and userName != ''"> - AND u.user_name like concat('%', #{userName}, '%') + AND u.user_name = #{userName} </if> <if test="nickName != null and nickName != ''"> AND u.nick_name like concat('%', #{nickName}, '%') @@ -323,7 +323,8 @@ <insert id="batchUser" useGeneratedKeys="true" keyProperty="userId"> insert into sys_user( user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, sex, password, status, create_by, remark, - user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, orgid,user_code, + user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, + orgid,user_code, create_time ) values <foreach collection="list" item="item" separator=","> -- Gitblit v1.9.3