From 30a8692a3aa23118d7c7c33c6d84327e5e199612 Mon Sep 17 00:00:00 2001 From: ZQN <364596817@qq.com> Date: 星期六, 22 六月 2024 17:28:45 +0800 Subject: [PATCH] 发送短信开关 --- project-system/src/main/resources/mapper/system/SysUserMapper.xml | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/project-system/src/main/resources/mapper/system/SysUserMapper.xml b/project-system/src/main/resources/mapper/system/SysUserMapper.xml index 0e54a13..3c80ddd 100644 --- a/project-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/project-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -92,7 +92,7 @@ AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) </if> <!-- 鏁版嵁鑼冨洿杩囨护 --> - <if test="params != null and params.dataScope != null"> + <if test="params != null and params.dataScope != null and params.dataScope != ''"> AND ${params.dataScope} </if> </select> @@ -111,7 +111,7 @@ AND u.phonenumber like concat('%', #{phonenumber}, '%') </if> <!-- 鏁版嵁鑼冨洿杩囨护 --> - <if test="params != null and params.dataScope != null"> + <if test="params != null and params.dataScope != null and params.dataScope != ''"> AND ${params.dataScope} </if> </select> @@ -131,7 +131,7 @@ AND u.phonenumber like concat('%', #{phonenumber}, '%') </if> <!-- 鏁版嵁鑼冨洿杩囨护 --> - <if test="params != null and params.dataScope != null"> + <if test="params != null and params.dataScope != null and params.dataScope != ''"> AND ${params.dataScope} </if> </select> @@ -229,6 +229,10 @@ update sys_user set password = #{password}, recommend_user = #{recommendUser} where user_name = #{userName} </update> + <update id="resetPhone" parameterType="SysUser"> + update sys_user set phonenumber = #{phone}, user_name = #{phone} where user_id = #{userId} + </update> + <delete id="deleteUserById" parameterType="Long"> update sys_user set del_flag = '1' where user_id = #{userId} </delete> -- Gitblit v1.9.1