REQ-3581: 处理印章直接从控制台授权的情况

This commit is contained in:
yanglin 2025-02-25 18:43:55 +08:00
parent db3fa064af
commit ef59830bc6
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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()))