正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
@@ -215,9 +215,8 @@ func (rs *EvaluationProjectService) UpdateTemplate(in *command.UpdateProjectTemp | @@ -215,9 +215,8 @@ func (rs *EvaluationProjectService) UpdateTemplate(in *command.UpdateProjectTemp | ||
215 | node := project.Template.LinkNodes[i] | 215 | node := project.Template.LinkNodes[i] |
216 | node.KpiCycle = in.KpiCycle // 设置周期 | 216 | node.KpiCycle = in.KpiCycle // 设置周期 |
217 | if node.Type == domain.LinkNodeViewResult { | 217 | if node.Type == domain.LinkNodeViewResult { |
218 | - if len(in.KpiResultStart) > 0 { | ||
219 | node.TimeStart = &kpiStart | 218 | node.TimeStart = &kpiStart |
220 | - } | 219 | + node.TimeEnd = &maxTime // 绩效查看时间跟随周期截止时间 |
221 | } else { | 220 | } else { |
222 | node.TimeStart = &start | 221 | node.TimeStart = &start |
223 | node.TimeEnd = &end | 222 | node.TimeEnd = &end |
@@ -17,6 +17,7 @@ func init() { | @@ -17,6 +17,7 @@ func init() { | ||
17 | web.NSRouter("/list", &controllers.TemplateController{}, "Post:ListTemplate"), | 17 | web.NSRouter("/list", &controllers.TemplateController{}, "Post:ListTemplate"), |
18 | web.NSRouter("/list-enable", &controllers.TemplateController{}, "Post:ListEnableTemplate"), | 18 | web.NSRouter("/list-enable", &controllers.TemplateController{}, "Post:ListEnableTemplate"), |
19 | web.NSRouter("/copy", &controllers.TemplateController{}, "Post:CopyTemplate"), | 19 | web.NSRouter("/copy", &controllers.TemplateController{}, "Post:CopyTemplate"), |
20 | + web.NSRouter("/state", &controllers.TemplateController{}, "Post:StateTemplate"), | ||
20 | ) | 21 | ) |
21 | web.AddNamespace(ns) | 22 | web.AddNamespace(ns) |
22 | } | 23 | } |
-
请 注册 或 登录 后发表评论