瀏覽代碼

Merge remote-tracking branch 'origin/master'

master
WendyYang 1 年之前
父節點
當前提交
5cadd691db
共有 2 個檔案被更改,包括 7 行新增9 行删除
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java
  2. +5
    -9
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java 查看文件

@@ -21,6 +21,7 @@ import com.ningdatech.pmapi.projectdeclared.model.dto.DefaultDeclaredDTO;
import com.ningdatech.pmapi.projectdeclared.model.dto.PretrialDeclaredExportDTO;
import com.ningdatech.pmapi.projectdeclared.model.dto.ProjectConditionDTO;
import com.ningdatech.pmapi.projectdeclared.model.req.ConstrctionPlanListReq;
import com.ningdatech.pmapi.projectlib.enumeration.InstTypeEnum;
import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum;
import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeEnum;
import com.ningdatech.pmapi.projectlib.helper.ProjectHelper;
@@ -186,6 +187,7 @@ public class ConstructionPlanManage {
ProjectInst projectInst = new ProjectInst();
projectInst.setProjectId(project.getId());
projectInst.setInstCode(instanceId);
projectInst.setInstType(InstTypeEnum.CONSTRUCTION_PLAN_REVIEW.getCode());
projectInst.setCreatOn(LocalDateTime.now());
projectInst.setUpdateOn(LocalDateTime.now());
projectInstService.save(projectInst);


+ 5
- 9
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java 查看文件

@@ -445,7 +445,9 @@ public class TodoCenterManage {
updateWithdrawProjectStatus(user.getUserId(), declaredProject);
// 保存到草稿箱中
ProjectDraftSaveDTO draftSaveDto = new ProjectDraftSaveDTO();
BeanUtils.copyProperties(declaredProject,draftSaveDto);
ProjectDTO projectInfo = new ProjectDTO();
BeanUtils.copyProperties(declaredProject,projectInfo);
draftSaveDto.setProjectInfo(projectInfo);
declaredProjectManage.saveToDraft(draftSaveDto);
// 并删除项目库中该项目信息
projectService.removeById(declaredProject);
@@ -1309,14 +1311,8 @@ public class TodoCenterManage {
if(!modifyProject(projectDto)){
throw new BusinessException("调整项目失败!");
}

//最后去审批(通过)当前退回节点的审核任务
ReqProcessHandlerDTO handlerDTO = new ReqProcessHandlerDTO();
handlerDTO.setProjectId(dto.getProjectId());
handlerDTO.setInstanceId(dto.getInstanceId());
handlerDTO.setTaskId(dto.getTaskId());
handlerDTO.setAction(ProcessHandlerEnum.PASS);
handler(handlerDTO);
// 更新当前流程状态为审核中
processTaskService.updateProInstStatus(dto.getInstanceId());
return dto.getInstanceId();

}


Loading…
取消
儲存