|
|
@@ -168,11 +168,12 @@ public class DelayedApplyManage { |
|
|
|
VUtils.isTrue(Objects.isNull(project)).throwMessage("提交失败 此项目不存在!"); |
|
|
|
|
|
|
|
//首先要判断 项目当前状态 是不是 以终验 |
|
|
|
VUtils.isTrue(!ProjectStatusEnum.ACCEPTED.getCode().equals(project.getStatus()) || |
|
|
|
!ProjectStatusEnum.ARCHIVED.getCode().equals(project.getStage())) |
|
|
|
.throwMessage("提交失败 该项目不是 已归档"); |
|
|
|
VUtils.isTrue(!ProjectStatusEnum.TO_BE_FINALLY_INSPECTED.getCode().equals(project.getStatus()) || |
|
|
|
!ProjectStatusEnum.PROJECT_APPROVED.getCode().equals(project.getStage())) |
|
|
|
.throwMessage("提交失败 该项目不是 已立项|待终验"); |
|
|
|
|
|
|
|
VUtils.isTrue(project.getPlanAcceptanceTime().compareTo(LocalDateTime.now()) <= 0) |
|
|
|
VUtils.isTrue(Objects.isNull(project.getPlanAcceptanceTime()) |
|
|
|
|| project.getPlanAcceptanceTime().compareTo(LocalDateTime.now()) <= 0) |
|
|
|
.throwMessage("当前项目还未过期验收"); |
|
|
|
|
|
|
|
return "申请发起成功"; |
|
|
|