Browse Source

延期申请驳回重新提交修改

tags/24080901
CMM 1 year ago
parent
commit
a48ad3fa3e
4 changed files with 15 additions and 1 deletions
  1. +1
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/DelayedApplyController.java
  2. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java
  3. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java
  4. +8
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java

+ 1
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/DelayedApplyController.java View File

@@ -4,6 +4,7 @@ import com.ningdatech.basic.model.PageVo;
import com.ningdatech.log.annotation.WebLog;
import com.ningdatech.pmapi.common.util.ExcelDownUtil;
import com.ningdatech.pmapi.projectdeclared.manage.DelayedApplyManage;
import com.ningdatech.pmapi.projectdeclared.model.dto.DefaultDeclaredDTO;
import com.ningdatech.pmapi.projectdeclared.model.dto.DelayedApplyDTO;
import com.ningdatech.pmapi.projectdeclared.model.vo.DelayedApplyVO;
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq;


+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java View File

@@ -151,6 +151,11 @@ public class DelayedApplyManage {
!HisProInsEndActId.END.equals(newInstance.getEndActivityId())){
item.setCanDelayApply(Boolean.FALSE);
}
// 如果是延期申请审核被驳回,设置项目可以申请延期申报
else if (InstTypeEnum.APPLY_DELAY.getCode().equals(instType) &&
HisProInsEndActId.REJECT.equals(newInstance.getEndActivityId())) {
item.setCanDelayApply(Boolean.TRUE);
}
return item;
});
return PageVo.of(records, total);


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java View File

@@ -715,7 +715,7 @@ public class ProjectLibManage {
project.setUpdateOn(LocalDateTime.now());
projectService.updateById(project);

// 保存延期申请信息
// 保存延期申请信息和申请延期前项目建设周期和验收时间
ProjectDelayApply projectDelayApply = new ProjectDelayApply();
projectDelayApply.setDelayTime(dto.getDelayedMonth());
projectDelayApply.setDelayApplyFile(dto.getSupportingMaterials());


+ 8
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java View File

@@ -267,6 +267,14 @@ public class HandlerManage {
if (!InstTypeEnum.APPLY_DELAY.getCode().equals(instType) && !InstTypeEnum.APPLY_BORROW.getCode().equals(instType)) {
// 更新项目状态和流程状态
updateRejectProjectStatus(userId, declaredProject, instType);
}else {
// 如果是延期申请审核被驳回,恢复项目建设周期和验收时间
if (InstTypeEnum.APPLY_DELAY.getCode().equals(instType)){
ProjectDelayApply projectDelayApply = projectDelayApplyService.getOne(Wrappers.lambdaQuery(ProjectDelayApply.class)
.eq(ProjectDelayApply::getProjectId, declaredProject.getId())
.eq(ProjectDelayApply::getInstanceId, instanceId));
}
}
//发送消息
noticeManage.sendNotice(instance.getStartUserId(),userId,declaredProject,instance.getProcessDefinitionName(),


Loading…
Cancel
Save