作者 郑周

1. 1

... ... @@ -746,6 +746,9 @@ func (rs *EvaluationProjectService) Resume(in *command.ActivateProjectCommand) (
if project.State == domain.ProjectStateEnable {
return nil, application.ThrowError(application.BUSINESS_ERROR, "项目已启动")
}
if project.State == domain.ProjectStatePause {
return nil, application.ThrowError(application.BUSINESS_ERROR, "项目暂停中,先进行恢复")
}
// 周期内的所有项目,已启用的员工不能重复被评估
_, projects, err := projectRepository.Find(map[string]interface{}{"companyId": project.CompanyId, "cycleId": project.CycleId}, "template")
... ...