|
@@ -76,17 +76,8 @@ public class ProjectStoppedManage { |
|
|
ProjectStatus.ON_STOPPED_APPLY.eq(project.getStatus())) { |
|
|
ProjectStatus.ON_STOPPED_APPLY.eq(project.getStatus())) { |
|
|
throw BizException.wrap("暂无法提交终止申请"); |
|
|
throw BizException.wrap("暂无法提交终止申请"); |
|
|
} |
|
|
} |
|
|
long hasDeclared = projectStatusChangeService.count(Wrappers.lambdaQuery(ProjectStatusChange.class) |
|
|
|
|
|
.eq(ProjectStatusChange::getProjectCode, project.getProjectCode()) |
|
|
|
|
|
.eq(ProjectStatusChange::getEvent, ProjectStateChangeEvent.DECLARED_RECORD_PASS)); |
|
|
|
|
|
|
|
|
|
|
|
project.setStoppedFiles(req.getStoppedFiles()); |
|
|
project.setStoppedFiles(req.getStoppedFiles()); |
|
|
project.setStoppedReason(req.getStoppedReason()); |
|
|
project.setStoppedReason(req.getStoppedReason()); |
|
|
if (hasDeclared == 0) { |
|
|
|
|
|
projectChangeStopHelper.changeProjectPurchaseStatus(project, STOPPED_APPLY_AUTO_PASS); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UserInfoDetails userDetail = LoginUserUtil.loginUserDetail(); |
|
|
UserInfoDetails userDetail = LoginUserUtil.loginUserDetail(); |
|
|
|
|
|
|
|
|
WflowModels wflowModels = processModelManage.getWflowModelsNoNull(ProjectProcessType.PROJECT_STOPPED, userDetail.getMhUnitId()); |
|
|
WflowModels wflowModels = processModelManage.getWflowModelsNoNull(ProjectProcessType.PROJECT_STOPPED, userDetail.getMhUnitId()); |
|
|