正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -396,12 +396,15 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | @@ -396,12 +396,15 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | ||
| 396 | pmpUserIds = append(pmpUserIds, userId) | 396 | pmpUserIds = append(pmpUserIds, userId) |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | - // 当前时间超过截至时间显示【已结束】 | 399 | + // 如果是已启用状态时,当前时间超过截至时间显示【已结束】 |
| 400 | + if project.State == domain.ProjectStateEnable { | ||
| 400 | if now > project.EndTime.Unix() { | 401 | if now > project.EndTime.Unix() { |
| 401 | project.State = domain.ProjectStateDisable | 402 | project.State = domain.ProjectStateDisable |
| 402 | } | 403 | } |
| 403 | } | 404 | } |
| 404 | 405 | ||
| 406 | + } | ||
| 407 | + | ||
| 405 | if len(pmpUserIds) > 0 { | 408 | if len(pmpUserIds) > 0 { |
| 406 | userRepository := factory.CreateUserRepository(map[string]interface{}{"transactionContext": transactionContext}) | 409 | userRepository := factory.CreateUserRepository(map[string]interface{}{"transactionContext": transactionContext}) |
| 407 | _, users, _ := userRepository.Find(map[string]interface{}{"ids": pmpUserIds, "limit": len(pmpUserIds)}) | 410 | _, users, _ := userRepository.Find(map[string]interface{}{"ids": pmpUserIds, "limit": len(pmpUserIds)}) |
-
请 注册 或 登录 后发表评论