Merge branch 'test' of http://gitlab.fjmaimaimai.com/allied-creation/performance into test
正在显示
2 个修改的文件
包含
3 行增加
和
7 行删除
@@ -458,14 +458,10 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | @@ -458,14 +458,10 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | ||
458 | pmpUserIds = append(pmpUserIds, userId) | 458 | pmpUserIds = append(pmpUserIds, userId) |
459 | } | 459 | } |
460 | 460 | ||
461 | - // 如果是已启用或暂停状态时,当前时间超过截至时间显示【已结束】 | ||
462 | - if project.State == domain.ProjectStateEnable || project.State == domain.ProjectStatePause { | 461 | + // 如果是已启用状态时,当前时间超过截至时间显示【已结束】 |
462 | + if project.State == domain.ProjectStateEnable { | ||
463 | if now > project.EndTime.Unix() { | 463 | if now > project.EndTime.Unix() { |
464 | project.State = domain.ProjectStateDisable | 464 | project.State = domain.ProjectStateDisable |
465 | - _, err = projectRepository.Insert(project) | ||
466 | - if err != nil { | ||
467 | - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
468 | - } | ||
469 | } | 465 | } |
470 | } | 466 | } |
471 | 467 |
@@ -8,7 +8,7 @@ const ( | @@ -8,7 +8,7 @@ const ( | ||
8 | ProjectStateWaitConfig int = 0 // 项目状态-待完成配置 | 8 | ProjectStateWaitConfig int = 0 // 项目状态-待完成配置 |
9 | ProjectStateWaitActive int = 1 // 项目状态-待启用 | 9 | ProjectStateWaitActive int = 1 // 项目状态-待启用 |
10 | ProjectStateEnable int = 2 // 项目状态-启动 | 10 | ProjectStateEnable int = 2 // 项目状态-启动 |
11 | - ProjectStateDisable int = 3 // 项目状态-结束 | 11 | + ProjectStateDisable int = 3 // 项目状态-结束(假状态) |
12 | ProjectStatePause int = 4 // 项目状态-暂停(可恢复启动) | 12 | ProjectStatePause int = 4 // 项目状态-暂停(可恢复启动) |
13 | ) | 13 | ) |
14 | 14 |
-
请 注册 或 登录 后发表评论