From ca054d1db9256bc8d367486b0d78e89cd4fd7fdb Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期二, 22 十月 2024 20:41:10 +0800 Subject: [PATCH] 删除时会连着分享和下载的数据一起删掉 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 32147da..1c14244 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -133,7 +133,14 @@ <include refid="selectUserVo"/> where u.user_name = #{userName} and u.del_flag = '0' </select> - + + + <select id="selectUserByNickName" parameterType="String" resultMap="SysUserResult"> + <include refid="selectUserVo"/> + where u.nick_name = #{nickName} and u.del_flag = '0' + </select> + + <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> <include refid="selectUserVo"/> where u.user_id = #{userId} @@ -142,7 +149,9 @@ <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1 </select> - + <select id="checkNickNameUnique" parameterType="String" resultMap="SysUserResult"> + select user_id, nick_name from sys_user where nick_name = #{nickName} and del_flag = '0' limit 1 + </select> <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1 </select> -- Gitblit v1.9.1