Merge branch 'test' of http://gitlab.fjmaimaimai.com/allied-creation/performance into test
正在显示
3 个修改的文件
包含
12 行增加
和
7 行删除
| @@ -396,10 +396,13 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | @@ -396,10 +396,13 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter | ||
| 396 | pmpUserIds = append(pmpUserIds, userId) | 396 | pmpUserIds = append(pmpUserIds, userId) |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | - // 当前时间超过截至时间显示【已结束】 | ||
| 400 | - if now > project.EndTime.Unix() { | ||
| 401 | - project.State = domain.ProjectStateDisable | 399 | + // 如果是已启用状态时,当前时间超过截至时间显示【已结束】 |
| 400 | + if project.State == domain.ProjectStateEnable { | ||
| 401 | + if now > project.EndTime.Unix() { | ||
| 402 | + project.State = domain.ProjectStateDisable | ||
| 403 | + } | ||
| 402 | } | 404 | } |
| 405 | + | ||
| 403 | } | 406 | } |
| 404 | 407 | ||
| 405 | if len(pmpUserIds) > 0 { | 408 | if len(pmpUserIds) > 0 { |
| @@ -25,8 +25,9 @@ const ( | @@ -25,8 +25,9 @@ const ( | ||
| 25 | ) | 25 | ) |
| 26 | 26 | ||
| 27 | type EntryItem struct { | 27 | type EntryItem struct { |
| 28 | - Title string `json:"title" comment:"填写标题"` | ||
| 29 | - HintText string `json:"hintText" comment:"文本内容提示"` | 28 | + Title string `json:"title" comment:"填写标题"` |
| 29 | + HintText string `json:"hintText" comment:"文本内容提示"` | ||
| 30 | + Definition string `json:"definition" comment:"定义"` | ||
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | // NodeContent 评估内容 | 33 | // NodeContent 评估内容 |
| @@ -106,8 +106,9 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf | @@ -106,8 +106,9 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf | ||
| 106 | for i3 := range module.Target { | 106 | for i3 := range module.Target { |
| 107 | target := module.Target[i3] | 107 | target := module.Target[i3] |
| 108 | nc.EntryItems = append(nc.EntryItems, &domain.EntryItem{ | 108 | nc.EntryItems = append(nc.EntryItems, &domain.EntryItem{ |
| 109 | - Title: target.Task, // 输入型标题 | ||
| 110 | - HintText: target.Definition, // 输入项提示文本 | 109 | + Title: target.Task, // 输入型标题 |
| 110 | + HintText: "", // 输入项提示文本 | ||
| 111 | + Definition: target.Definition, //定义 | ||
| 111 | }) | 112 | }) |
| 112 | } | 113 | } |
| 113 | // 没有任何输入项时,默认1个 | 114 | // 没有任何输入项时,默认1个 |
-
请 注册 或 登录 后发表评论