...
|
...
|
@@ -396,12 +396,15 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter |
|
|
pmpUserIds = append(pmpUserIds, userId)
|
|
|
}
|
|
|
|
|
|
// 当前时间超过截至时间显示【已结束】
|
|
|
// 如果是已启用状态时,当前时间超过截至时间显示【已结束】
|
|
|
if project.State == domain.ProjectStateEnable {
|
|
|
if now > project.EndTime.Unix() {
|
|
|
project.State = domain.ProjectStateDisable
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if len(pmpUserIds) > 0 {
|
|
|
userRepository := factory.CreateUserRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
_, users, _ := userRepository.Find(map[string]interface{}{"ids": pmpUserIds, "limit": len(pmpUserIds)})
|
...
|
...
|
|