|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.codec.Base64; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.date.DatePattern; |
|
|
|
import cn.hutool.core.date.StopWatch; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
@@ -171,7 +172,6 @@ public class TodoCenterManage { |
|
|
|
Integer pageSize = param.getPageSize(); |
|
|
|
req.setProcessDefId(param.getProcessDefId()); |
|
|
|
req.setUserId(String.valueOf(userId)); |
|
|
|
BeanUtils.copyProperties(param,req); |
|
|
|
List<ProcessTaskVo> todoList = processTaskService.getUserTodoList(req); |
|
|
|
|
|
|
|
if (CollUtil.isEmpty(todoList)) { |
|
|
@@ -195,6 +195,8 @@ public class TodoCenterManage { |
|
|
|
ResToBeProcessedVO res = new ResToBeProcessedVO(); |
|
|
|
BeanUtils.copyProperties(projectInfo, res); |
|
|
|
res.setProjectId(projectInfo.getId()); |
|
|
|
res.setBuildOrg(projectInfo.getBuildOrgName()); |
|
|
|
res.setDeclaredAmount(projectInfo.getDeclareAmount()); |
|
|
|
ProcessTaskVo taskVo = taskMap.get(d.getInstanceId()); |
|
|
|
res.setNodeId(taskVo.getTaskDefKey()); |
|
|
|
res.setProcessStatusName(taskVo.getStatus()); |
|
|
@@ -725,7 +727,6 @@ public class TodoCenterManage { |
|
|
|
Map<String, Project> projectInfoMap = projectInstList.stream().collect(Collectors.toMap(ProjectInst::getInstCode, p-> projectsMap.get(p.getProjectId()))); |
|
|
|
List<String> instCodes = projectInstList.stream().map(ProjectInst::getInstCode).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
|
|
// 查出用户工作流 |
|
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|
|
Integer pageNumber = param.getPageNumber(); |
|
|
@@ -733,7 +734,11 @@ public class TodoCenterManage { |
|
|
|
req.setProcessDefId(param.getProcessDefId()); |
|
|
|
req.setUserId(String.valueOf(userId)); |
|
|
|
req.setInstCodes(instCodes); |
|
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
|
stopWatch.start(); |
|
|
|
List<ProcessTaskVo> iDoList = processTaskService.getUserIdoList(req); |
|
|
|
stopWatch.stop(); |
|
|
|
log.info("========== 查询已处理列表时间为 {}s",stopWatch.getTotalTimeSeconds()); |
|
|
|
|
|
|
|
if (CollUtil.isEmpty(iDoList)) { |
|
|
|
return PageVo.empty(); |
|
|
@@ -748,6 +753,8 @@ public class TodoCenterManage { |
|
|
|
ResToBeProcessedVO res = new ResToBeProcessedVO(); |
|
|
|
Project projectInfo = projectInfoMap.get(d.getInstanceId()); |
|
|
|
BeanUtils.copyProperties(projectInfo, res); |
|
|
|
res.setBuildOrg(projectInfo.getBuildOrgName()); |
|
|
|
res.setDeclaredAmount(projectInfo.getDeclareAmount()); |
|
|
|
res.setProjectId(projectInfo.getId()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
LocalDateTime launchTime = NdDateUtils.date2LocalDateTime(d.getCreateTime()); |
|
|
@@ -872,8 +879,9 @@ public class TodoCenterManage { |
|
|
|
List<ResToBeProcessedVO> resVos = userSubmittedList.stream().map(d -> { |
|
|
|
ResToBeProcessedVO res = new ResToBeProcessedVO(); |
|
|
|
Project project = projectInfoMap.get(d.getInstanceId()); |
|
|
|
BeanUtils.copyProperties(d, res); |
|
|
|
BeanUtils.copyProperties(project, res); |
|
|
|
res.setBuildOrg(project.getBuildOrgName()); |
|
|
|
res.setDeclaredAmount(project.getDeclareAmount()); |
|
|
|
res.setProjectId(project.getId()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
res.setProcessLaunchTime(NdDateUtils.date2LocalDateTime(d.getStartTime())); |
|
|
@@ -990,10 +998,11 @@ public class TodoCenterManage { |
|
|
|
List<ResToBeProcessedVO> resVos = ccMeInstList.stream().map(d -> { |
|
|
|
ResToBeProcessedVO res = new ResToBeProcessedVO(); |
|
|
|
Project project = projectInfoMap.get(d.getInstanceId()); |
|
|
|
BeanUtils.copyProperties(d, res); |
|
|
|
BeanUtils.copyProperties(project, res); |
|
|
|
res.setNodeId(d.getNodeId()); |
|
|
|
res.setProjectId(project.getId()); |
|
|
|
res.setBuildOrg(project.getBuildOrgName()); |
|
|
|
res.setDeclaredAmount(project.getDeclareAmount()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
res.setProcessLaunchTime(NdDateUtils.date2LocalDateTime(d.getStartTime())); |
|
|
|
return res; |
|
|
|