Browse Source

优化 实例详情

master
PoffyZhang 1 year ago
parent
commit
1463436aa2
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 11
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -3,6 +3,7 @@ package com.ningdatech.pmapi.todocenter.manage;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.common.collect.Sets;
import com.ningdatech.basic.exception.BizException;
import com.ningdatech.basic.model.PageVo;
import com.ningdatech.pmapi.common.constant.CommonConstant;
@@ -540,7 +541,16 @@ public class TodoCenterManage {
ProcessProgressVo progressInstanceDetail = processInstanceService.getProgressInstanceDetail(null, instanceId);
List<ProgressNode> progressInfo = progressInstanceDetail.getProgressInfo();

Set<String> userSet = progressInfo.stream().map(ProgressNode::getUserId).collect(Collectors.toSet());
Set<String> userSet = Sets.newHashSet();
progressInfo.forEach(node -> {
if(CollUtil.isNotEmpty(node.getChildren())){
for(ProgressNode innerNode : node.getChildren()){
userSet.add(innerNode.getUserId());
}
}else{
userSet.add(node.getUserId());
}
});
Map<String, ProcessInstanceUserDto> userMap = userInfoService.getUserMapByIds(userSet);

// 装配节点审核人员信息


Loading…
Cancel
Save