@@ -4,6 +4,7 @@ import com.ningdatech.basic.model.PageVo; | |||||
import com.ningdatech.log.annotation.WebLog; | import com.ningdatech.log.annotation.WebLog; | ||||
import com.ningdatech.pmapi.common.util.ExcelDownUtil; | import com.ningdatech.pmapi.common.util.ExcelDownUtil; | ||||
import com.ningdatech.pmapi.projectdeclared.manage.DelayedApplyManage; | 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.dto.DelayedApplyDTO; | ||||
import com.ningdatech.pmapi.projectdeclared.model.vo.DelayedApplyVO; | import com.ningdatech.pmapi.projectdeclared.model.vo.DelayedApplyVO; | ||||
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; | import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; | ||||
@@ -151,6 +151,11 @@ public class DelayedApplyManage { | |||||
!HisProInsEndActId.END.equals(newInstance.getEndActivityId())){ | !HisProInsEndActId.END.equals(newInstance.getEndActivityId())){ | ||||
item.setCanDelayApply(Boolean.FALSE); | item.setCanDelayApply(Boolean.FALSE); | ||||
} | } | ||||
// 如果是延期申请审核被驳回,设置项目可以申请延期申报 | |||||
else if (InstTypeEnum.APPLY_DELAY.getCode().equals(instType) && | |||||
HisProInsEndActId.REJECT.equals(newInstance.getEndActivityId())) { | |||||
item.setCanDelayApply(Boolean.TRUE); | |||||
} | |||||
return item; | return item; | ||||
}); | }); | ||||
return PageVo.of(records, total); | return PageVo.of(records, total); | ||||
@@ -715,7 +715,7 @@ public class ProjectLibManage { | |||||
project.setUpdateOn(LocalDateTime.now()); | project.setUpdateOn(LocalDateTime.now()); | ||||
projectService.updateById(project); | projectService.updateById(project); | ||||
// 保存延期申请信息 | |||||
// 保存延期申请信息和申请延期前项目建设周期和验收时间 | |||||
ProjectDelayApply projectDelayApply = new ProjectDelayApply(); | ProjectDelayApply projectDelayApply = new ProjectDelayApply(); | ||||
projectDelayApply.setDelayTime(dto.getDelayedMonth()); | projectDelayApply.setDelayTime(dto.getDelayedMonth()); | ||||
projectDelayApply.setDelayApplyFile(dto.getSupportingMaterials()); | projectDelayApply.setDelayApplyFile(dto.getSupportingMaterials()); | ||||
@@ -267,6 +267,14 @@ public class HandlerManage { | |||||
if (!InstTypeEnum.APPLY_DELAY.getCode().equals(instType) && !InstTypeEnum.APPLY_BORROW.getCode().equals(instType)) { | if (!InstTypeEnum.APPLY_DELAY.getCode().equals(instType) && !InstTypeEnum.APPLY_BORROW.getCode().equals(instType)) { | ||||
// 更新项目状态和流程状态 | // 更新项目状态和流程状态 | ||||
updateRejectProjectStatus(userId, declaredProject, 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(), | noticeManage.sendNotice(instance.getStartUserId(),userId,declaredProject,instance.getProcessDefinitionName(), | ||||