...
|
...
|
@@ -458,14 +458,10 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter |
|
|
pmpUserIds = append(pmpUserIds, userId)
|
|
|
}
|
|
|
|
|
|
// 如果是已启用或暂停状态时,当前时间超过截至时间显示【已结束】
|
|
|
if project.State == domain.ProjectStateEnable || project.State == domain.ProjectStatePause {
|
|
|
// 如果是已启用状态时,当前时间超过截至时间显示【已结束】
|
|
|
if project.State == domain.ProjectStateEnable {
|
|
|
if now > project.EndTime.Unix() {
|
|
|
project.State = domain.ProjectStateDisable
|
|
|
_, err = projectRepository.Insert(project)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|