Commit 28060a1d authored by suntao's avatar suntao

超管 修改

parent 37774e4f
......@@ -304,6 +304,11 @@ public class UserServiceImpl implements UserService {
if (roleId == 1L) {
// 将普通用户设置成超级管理,需要级联设置用户级别
exist.setRank(UserRank.SUPER_ADMINISTRATOR);
} else {
if (exist.getRank().equals(UserRank.SUPER_ADMINISTRATOR)) {
// 如果之前是超管 改成普通操作员,用户级别做相应调整
exist.setRank(UserRank.OPERATOR);
}
}
//exist.setPassword(MD5Tools.md5(userModelVo.getPassword()));
exist.setRoles(Collections.singletonList(role));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment