REQ-3581: 处理印章直接从控制台授权的情况
This commit is contained in:
parent
db3fa064af
commit
ef59830bc6
@ -166,7 +166,7 @@ public class QueryService {
|
||||
? null : sealPerson.getAuthorizeTime().getTime());
|
||||
PersonProfileDto person = personProfiles.findOrNull(sealPerson.getPersonId());
|
||||
sealPersonInfo.setPersonName(person == null ? "" : person.getRealName());
|
||||
PersonProfileDto authorizedBy = personProfiles.findOrNull(sealPerson.getPersonId());
|
||||
PersonProfileDto authorizedBy = personProfiles.findOrNull(sealPerson.getAuthorizedByPersonId());
|
||||
sealPersonInfo.setAuthorizedByPersonName(authorizedBy == null ? "" : authorizedBy.getRealName());
|
||||
sealPersonsInfo.add(sealPersonInfo);
|
||||
}
|
||||
|
||||
@ -124,8 +124,8 @@ class CallbackController implements EssCallbackApi, InitializingBean {
|
||||
.find(operate.getSealId(), authorized.getPersonId())
|
||||
.orElse(null);
|
||||
// 可能从控制台直接授权
|
||||
boolean authorizedByPersonPreset = savedPerson != null && savedPerson.getAuthorizedByPersonId() > 0;
|
||||
long authorizedByPersonId = authorizedByPersonPreset ? 0L : operator.getPersonId();
|
||||
boolean authorizedByPreset = savedPerson != null && savedPerson.getAuthorizedByPersonId() > 0;
|
||||
long authorizedByPersonId = authorizedByPreset ? 0L : operator.getPersonId();
|
||||
orgManager.addSealAuthorization(operate.getSealId(), authorized.getPersonId(), authorizedByPersonId);
|
||||
}
|
||||
if ("Invalid".equals(operate.getOperate()))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user