Bläddra i källkod

建设方案 专家建议 保存到项目

master
PoffyZhang 1 år sedan
förälder
incheckning
6c3fd0461d
2 ändrade filer med 18 tillägg och 1 borttagningar
  1. +13
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  2. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/ProcessProgressDetailVo.java

+ 13
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java Visa fil

@@ -22,6 +22,7 @@ import com.ningdatech.basic.util.StrPool;
import com.ningdatech.file.entity.File;
import com.ningdatech.file.entity.vo.result.FileResultVO;
import com.ningdatech.file.service.FileService;
import com.ningdatech.pmapi.common.constant.BizConst;
import com.ningdatech.pmapi.common.constant.CommonConst;
import com.ningdatech.pmapi.common.constant.RegionConst;
import com.ningdatech.pmapi.common.enumeration.CommonEnum;
@@ -555,6 +556,10 @@ public class TodoCenterManage {
String taskId = request.getTaskId();
ProcessProgressVo progressInstanceDetail = processInstanceService.getProgressInstanceDetail(nodeId, instanceId, taskId);

ProjectInst projectInst = projectInstService.getOne(Wrappers.lambdaQuery(ProjectInst.class)
.eq(ProjectInst::getInstCode, instanceId)
.last(BizConst.LIMIT_1));

if (Objects.isNull(progressInstanceDetail)) {
return null;
}
@@ -566,9 +571,16 @@ public class TodoCenterManage {
isHighLine = checkHighLine(progressInfo, taskId, LoginUserUtil.loginUserDetail());
}
ProcessProgressDetailVo res = new ProcessProgressDetailVo();
if(Objects.nonNull(projectInst)){
Long projectIdThis = projectInst.getProjectId();
Project project = projectService.getById(projectIdThis);
res.setProjectCode(project.getProjectCode());
res.setProjectId(projectInst.getProjectId());
}else{
res.setProjectId(request.getProjectId());
}
res.setProcessProgressVo(progressInstanceDetail);
res.setStatus(progressInstanceDetail.getStatus());
res.setProjectId(projectId);
res.setCanWithdraw(withDrawHandle.checkCanWithdraw(instanceId, progressInstanceDetail, request.getTaskId()));
res.setIsHighLine(isHighLine);
res.setConstructionSuggestions(checkConstructionSuggestionsByNodeId(nodeId));


+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/ProcessProgressDetailVo.java Visa fil

@@ -35,6 +35,11 @@ public class ProcessProgressDetailVo {
private Long projectId;

/**
* 项目编号
*/
private String projectCode;

/**
* 能否撤回
*/
private Boolean canWithdraw = Boolean.FALSE;


Laddar…
Avbryt
Spara