Commit 12c391a2 by 杨林龙

1.22.0 优化特殊登陆状态的编辑操作 增加重置UID功能

1 parent 04ccecaf
......@@ -434,6 +434,8 @@ public class UserService {
String oldPassword = user.getPassword();
Integer oldSpecialLogin = user.getSpecialLogin();
BeanUtils.copyProperties(userBO, user);
//如果填了密码,修改密码
......@@ -459,6 +461,13 @@ public class UserService {
userRoleRelationMapper.updateByPrimaryKeySelective(relation);
}
}
// 如果有关闭特殊登陆状态 则重置UID
if (SpecialLoginEnum.SPECIAL_LOGIN.getCode().equals(oldSpecialLogin) &&
SpecialLoginEnum.NON_SPECIAL_LOGIN.getCode().equals(userBO.getSpecialLogin())) {
log.info("修改特殊登陆状态为关闭状态,重置UID,用户ID:" + userBO.getId());
resetUID(userBO.getId());
}
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!