REQ-3581: 印章授权人问题
This commit is contained in:
parent
969ccdef9e
commit
b743534f40
@ -90,13 +90,12 @@ class CallbackController implements EssCallbackApi, InitializingBean {
|
||||
registerHandler(CallbackType.ORG_PERSON_JOIN, request -> {
|
||||
PersonOpenId person = PersonOpenId.parse(request.readMsgData(OrgPersonJoin.class).getProxyOperatorOpenId());
|
||||
orgManager.addAuthorizedOrgPerson(person);
|
||||
// 一般情况下只会存在一条记录
|
||||
// 自动授权
|
||||
for (EssSealPerson sealPerson : essSealPersonDao.getByPersonId(person.getOuId(), person.getPersonId())) {
|
||||
AddSealAuthorizationRequest addSealAuthorizationRequest = new AddSealAuthorizationRequest();
|
||||
addSealAuthorizationRequest.setEssSealId(sealPerson.getEssSealId());
|
||||
addSealAuthorizationRequest.setPersonId(person.getPersonId());
|
||||
// 保留界面上的操作人
|
||||
addSealAuthorizationRequest.setOperatorPersonId(null);
|
||||
addSealAuthorizationRequest.setOperatorPersonId(person.getPersonId());
|
||||
try {
|
||||
essService.essAddSealAuthorization(addSealAuthorizationRequest);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user