正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -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") |
-
请 注册 或 登录 后发表评论