Compare commits

..

No commits in common. "ee0107384e7790becf7cb72b985124480b85204e" and "8f07301082f3779bc6542c2667cbea79d7892f57" have entirely different histories.

5 changed files with 6 additions and 10 deletions

View File

@ -108,7 +108,7 @@ public class SysProfileController extends BaseController {
LoginUser loginUser = SecurityUtils.getLoginUser();
loginUser.getSysUser().setPassword(SecurityUtils.encryptPassword(newDecrypt));
tokenService.setLoginUser(loginUser);
userService.updatePwdState(loginUser);
userService.updatePwdState();
return success();
}
return error("修改密码异常,请联系管理员");

View File

@ -1,8 +1,6 @@
package com.bonus.sgzb.system.mapper;
import java.util.List;
import com.bonus.sgzb.system.api.model.LoginUser;
import org.apache.ibatis.annotations.Param;
import com.bonus.sgzb.system.api.domain.SysUser;
@ -139,5 +137,5 @@ public interface SysUserMapper
String selectforceChangePwd(String username);
void updatePwdState(LoginUser loginUser);
void updatePwdState();
}

View File

@ -4,7 +4,6 @@ import java.util.List;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.system.api.domain.SysUser;
import com.bonus.sgzb.system.api.model.LoginUser;
import com.bonus.sgzb.system.domain.po.UrgentProcessingUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
@ -228,5 +227,5 @@ public interface ISysUserService
String selectforceChangePwd(String username);
void updatePwdState(LoginUser loginUser);
void updatePwdState();
}

View File

@ -582,8 +582,8 @@ public class SysUserServiceImpl implements ISysUserService {
}
@Override
public void updatePwdState(LoginUser loginUser) {
userMapper.updatePwdState(loginUser);
public void updatePwdState() {
userMapper.updatePwdState();
}

View File

@ -257,10 +257,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update purchase_notice_person set telphone = #{phonenumber} where user_id = #{userId}
</update>
<update id="updatePwdState">
update sys_user set force_change_pwd = '0' where user_id = #{userid}
update sys_user set force_change_pwd = '0'
</update>
<delete id="deleteUserById" parameterType="Long">
update sys_user set del_flag = '2' where user_id = #{userId}
</delete>