feat(REQ-4586) - 调整审批人冗余相信内容,防止消费时出现 NPE

This commit is contained in:
wangli 2025-07-14 14:49:38 +08:00
parent 439ef6ef4d
commit f8678ad02a
2 changed files with 6 additions and 3 deletions

View File

@ -563,6 +563,8 @@ public class BpmnProcessInstanceController extends BasicPopulateAvatarController
if (Objects.isNull(dto.getStatus())) {
query.setStatus(BpmnProcessInstanceResultEnum.PROCESSING.getStatus());
} else {
query.setStatus(dto.getStatus().getStatus());
}
List<ExtAxProcessLog> extAxProcessLogs = extAxProcessLogService.genericQuery(query);
return success(ListUtils.emptyIfNull(extAxProcessLogs).stream().map(i -> {

View File

@ -190,8 +190,9 @@ public class TaskEntityEventHandle implements EntityEventHandle<TaskEntity> {
.map(i -> JobInfo.builder()
.jobCode(i.getJob().getCode())
.jobName(i.getJob().getName())
.build()).collect(Collectors.toList()))
.build() : null)
.build())
.collect(Collectors.toList()))
.build() : OrgSnapshotInfo.builder().jobInfos(Collections.emptyList()).build())
.build();
FlowElement flowElement = ProcessDefinitionUtil.getBpmnModel(taskEntity.getProcessDefinitionId()).getFlowElement(taskEntity.getTaskDefinitionKey());