Commit 298fe0ec authored by wzp's avatar wzp

修改用户

parent 7592ef71
...@@ -599,6 +599,19 @@ public class TUserController extends BaseController { ...@@ -599,6 +599,19 @@ public class TUserController extends BaseController {
} }
} }
if (StringUtils.isNoneBlank(user.getOrgId())) {
user.setOrgId(user.getOrgId());
ew.eq("is_deleted", 0);
ew.eq("type", "3");
ew.eq("org_id", user.getOrgId());
List<TUser> list = this.userService.list(ew);
if (list != null&&list.size()>1&&list.get(0)!=null) {
resultMap.put("resultCode", 200);
resultMap.put("message", "每个单位只能有一个机顶盒账号!");
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(resultMap);
}
}
byte[] passwordSalt = SecureRandomSaltService.generateSalt(); byte[] passwordSalt = SecureRandomSaltService.generateSalt();
byte[] passwordHash = SHA256PasswordEncryptionService byte[] passwordHash = SHA256PasswordEncryptionService
.createPasswordHash(user.getPassword(), passwordSalt); .createPasswordHash(user.getPassword(), passwordSalt);
......
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