Commit 9b9a6920 authored by nie'hong's avatar nie'hong

限制新建管理员的数量

parent c4ac9a8a
......@@ -161,7 +161,7 @@ public class LoginController extends BaseController {
}
}
//密码解密
// password = AESUtils.aesDecrypt(password);
password = AESUtils.aesDecrypt(password);
byte[] salt = user.getPasswordSalt();
String s1 = new String(SHA256PasswordEncryptionService.createPasswordHash(password, salt));
......
......@@ -258,12 +258,12 @@ public class TUserController extends BaseController {
map.put("org_id", user.getOrgId());
List<TUser> list = userService.getUserListByRole(map);
if ("2".equals(user.getRoleId()) && list.size() >= 2) {
resultMap.put("resultCode", "200");
resultMap.put("resultCode", "400");
resultMap.put("message", "机构已存在两个单位管理员!");
return resultMap;
}
if ("17".equals(user.getRoleId()) && list.size() >= 1) {
resultMap.put("resultCode", "200");
resultMap.put("resultCode", "400");
resultMap.put("message", "机构已存在一个互动审核员!");
return resultMap;
}
......
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