fix: 制修订流程其他起草人定时任务阻塞BUG

This commit is contained in:
2024-02-04 16:51:35 +08:00
parent 1a927723d2
commit aba56bc497
@@ -105,7 +105,7 @@ public class OtherDraftUserUploadDeadlineJob implements Job {
}
private void bundleTaskAndApprovalRecord(List<OtherDraftUserVO> otherDraftUserVOS, List<ProcessApprovalRecord> arList) {
Map<String, List<ProcessApprovalRecord>> arMap = arList.stream()
Map<String, List<ProcessApprovalRecord>> arMap = arList.stream().filter(p -> StrUtil.isNotBlank(p.getOriginUserId()))
.collect(Collectors.groupingBy(ProcessApprovalRecord::getOriginUserId));
List<String> alreadyTaskId = new ArrayList<>();
otherDraftUserVOS.forEach(o -> alreadyTaskId.add(o.getTaskId()));