|
@@ -118,6 +118,9 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
@Resource
|
|
|
SysUserRoleService sysUserRoleService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ TSJobRemindService tsJobRemindService;
|
|
|
+
|
|
|
/**
|
|
|
* 根据deploymentId查找processDefinitionId
|
|
|
*
|
|
@@ -507,7 +510,11 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
IPage<WorkTaskResult> workTaskResultIPage = sysUserService.getFlowTaskList(iPage, userId, type, serviceId, customName, flowTaskTypeEnum, crmNo);
|
|
|
if (Objects.nonNull(workTaskResultIPage) && !CollectionUtils.isEmpty(workTaskResultIPage.getRecords())) {
|
|
|
+ Set<String> sopNoSet = new HashSet<>(workTaskResultIPage.getRecords().size());
|
|
|
+ Map<String, WorkTaskResult> workTaskMap = new LinkedHashMap<>();
|
|
|
for (WorkTaskResult w : workTaskResultIPage.getRecords()) {
|
|
|
+ sopNoSet.add(w.getCode());
|
|
|
+ workTaskMap.put(w.getCode(), w);
|
|
|
List<Task> taskList = taskService.createTaskQuery().taskId(String.valueOf(w.getTaskId())).list();
|
|
|
if (!CollectionUtils.isEmpty(taskList)) {
|
|
|
for (Task t : taskList) {
|
|
@@ -520,6 +527,14 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ List<WorkTaskResult> workTaskResultList = tsJobRemindService.getJobRemindProcessHour(sysUser.getId(), sopNoSet);
|
|
|
+ if (!CollectionUtils.isEmpty(workTaskResultList)) {
|
|
|
+ for (WorkTaskResult w : workTaskResultList) {
|
|
|
+ if (Objects.nonNull(workTaskMap.get(w.getCode())) && Objects.nonNull(w.getProcessHour())) {
|
|
|
+ workTaskMap.get(w.getCode()).setProcessHour(w.getProcessHour());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return workTaskResultIPage;
|
|
|
}
|