作者 郑周

提交项目优化

... ... @@ -215,9 +215,8 @@ func (rs *EvaluationProjectService) UpdateTemplate(in *command.UpdateProjectTemp
node := project.Template.LinkNodes[i]
node.KpiCycle = in.KpiCycle // 设置周期
if node.Type == domain.LinkNodeViewResult {
if len(in.KpiResultStart) > 0 {
node.TimeStart = &kpiStart
}
node.TimeStart = &kpiStart
node.TimeEnd = &maxTime // 绩效查看时间跟随周期截止时间
} else {
node.TimeStart = &start
node.TimeEnd = &end
... ...
... ... @@ -17,6 +17,7 @@ func init() {
web.NSRouter("/list", &controllers.TemplateController{}, "Post:ListTemplate"),
web.NSRouter("/list-enable", &controllers.TemplateController{}, "Post:ListEnableTemplate"),
web.NSRouter("/copy", &controllers.TemplateController{}, "Post:CopyTemplate"),
web.NSRouter("/state", &controllers.TemplateController{}, "Post:StateTemplate"),
)
web.AddNamespace(ns)
}
... ...