Browse Source

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

tags/24080901
PoffyZhang 1 year ago
parent
commit
6c3fd0461d
2 changed files with 18 additions and 1 deletions
  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 View File

@@ -22,6 +22,7 @@ import com.ningdatech.basic.util.StrPool;
import com.ningdatech.file.entity.File; import com.ningdatech.file.entity.File;
import com.ningdatech.file.entity.vo.result.FileResultVO; import com.ningdatech.file.entity.vo.result.FileResultVO;
import com.ningdatech.file.service.FileService; 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.CommonConst;
import com.ningdatech.pmapi.common.constant.RegionConst; import com.ningdatech.pmapi.common.constant.RegionConst;
import com.ningdatech.pmapi.common.enumeration.CommonEnum; import com.ningdatech.pmapi.common.enumeration.CommonEnum;
@@ -555,6 +556,10 @@ public class TodoCenterManage {
String taskId = request.getTaskId(); String taskId = request.getTaskId();
ProcessProgressVo progressInstanceDetail = processInstanceService.getProgressInstanceDetail(nodeId, instanceId, taskId); 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)) { if (Objects.isNull(progressInstanceDetail)) {
return null; return null;
} }
@@ -566,9 +571,16 @@ public class TodoCenterManage {
isHighLine = checkHighLine(progressInfo, taskId, LoginUserUtil.loginUserDetail()); isHighLine = checkHighLine(progressInfo, taskId, LoginUserUtil.loginUserDetail());
} }
ProcessProgressDetailVo res = new ProcessProgressDetailVo(); 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.setProcessProgressVo(progressInstanceDetail);
res.setStatus(progressInstanceDetail.getStatus()); res.setStatus(progressInstanceDetail.getStatus());
res.setProjectId(projectId);
res.setCanWithdraw(withDrawHandle.checkCanWithdraw(instanceId, progressInstanceDetail, request.getTaskId())); res.setCanWithdraw(withDrawHandle.checkCanWithdraw(instanceId, progressInstanceDetail, request.getTaskId()));
res.setIsHighLine(isHighLine); res.setIsHighLine(isHighLine);
res.setConstructionSuggestions(checkConstructionSuggestionsByNodeId(nodeId)); res.setConstructionSuggestions(checkConstructionSuggestionsByNodeId(nodeId));


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

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


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

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


Loading…
Cancel
Save