强制改密码

This commit is contained in:
sxu 2024-10-25 10:48:27 +08:00
parent 0b150355d1
commit 302721fd57
2 changed files with 2 additions and 1 deletions

View File

@ -378,6 +378,7 @@ public class SysUserServiceImpl implements ISysUserService {
*/
@Override
public int resetPwd(SysUser user) {
user.setForceChangePwd("1");
return userMapper.updateUser(user);
}

View File

@ -236,7 +236,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="loginDate != null">login_date = #{loginDate},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark},</if>
force_change_pwd = 1,
<if test="forceChangePwd != null">force_change_pwd = #{forceChangePwd},</if>
update_time = sysdate()
</set>
where user_id = #{userId}