作者 郑周

1. 1

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