CMM 1 year ago
parent
commit
d41f746f32
2 changed files with 13 additions and 3 deletions
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/ProcdefController.java
  2. +10
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/ProcdefController.java View File

@@ -1,7 +1,10 @@
package com.ningdatech.pmapi.sys.controller; package com.ningdatech.pmapi.sys.controller;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.ningdatech.basic.model.PageVo; import com.ningdatech.basic.model.PageVo;
import com.wflow.bean.dto.WflowModelHistorysDto; import com.wflow.bean.dto.WflowModelHistorysDto;
import com.wflow.bean.vo.WflowFormVo;
import com.wflow.bean.vo.WflowModelVo; import com.wflow.bean.vo.WflowModelVo;
import com.wflow.service.ModelGroupService; import com.wflow.service.ModelGroupService;
import com.wflow.workflow.service.ProcessModelService; import com.wflow.workflow.service.ProcessModelService;


+ 10
- 3
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -555,9 +555,7 @@ public class TodoCenterManage {
Map<String, ProcessInstanceUserDto> userMap = userInfoService.getUserMapByIds(userSet); Map<String, ProcessInstanceUserDto> userMap = userInfoService.getUserMapByIds(userSet);


// 装配节点审核人员信息 // 装配节点审核人员信息
for (ProgressNode progressNode : progressInfo) {
progressNode.setUser(userMap.get(progressNode.getUserId()));
}
buildUser(progressInfo,userMap);


ProcessProgressDetailVo res = new ProcessProgressDetailVo(); ProcessProgressDetailVo res = new ProcessProgressDetailVo();
res.setProcessProgressVo(progressInstanceDetail); res.setProcessProgressVo(progressInstanceDetail);
@@ -565,6 +563,15 @@ public class TodoCenterManage {
return res; return res;
} }


private void buildUser(List<ProgressNode> progressInfo,Map<String, ProcessInstanceUserDto> userMap) {
for (ProgressNode progressNode : progressInfo) {
progressNode.setUser(userMap.get(progressNode.getUserId()));
if(CollUtil.isNotEmpty(progressNode.getChildren())){
buildUser(progressNode.getChildren(),userMap);
}
}
}

/** /**
* 待办中心我已处理项目列表查询 * 待办中心我已处理项目列表查询
* *


Loading…
Cancel
Save