REQ-3581: 备份
This commit is contained in:
parent
67c0cfc2b0
commit
19bf6e00d6
@ -115,6 +115,11 @@ class ApiController implements EssApi {
|
||||
BizAssertions.assertNotNull(seal, "印章不存在: {}", request.getEssSealId());
|
||||
EssPerson superAdmin = orgManager.getSuperAdminOrThrow(seal.getOuId());
|
||||
BizAssertions.assertFalse(superAdmin.getPersonId().equals(request.getPersonId()), "不能从印章列表删除超级管理员");
|
||||
EssSealPerson sealPerson = essSealPersonDao
|
||||
.find(request.getEssSealId(), request.getPersonId(), false).orElse(null);
|
||||
BizAssertions.assertNotNull(sealPerson, "印章人员不存在");
|
||||
//noinspection DataFlowIssue
|
||||
BizAssertions.assertFalse(sealPerson.getIsAuthorized().isYes(), "存在印章授权, 无法移除印章人员");
|
||||
orgManager.removeSealPerson(request.getEssSealId(), request.getPersonId());
|
||||
return ApiResult.ok();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user