|
@@ -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
|
|