Browse Source

Merge branch 'pool/337' into debug

Roc 1 month ago
parent
commit
8fed8137aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/data/stl/stl.go

+ 2 - 1
services/data/stl/stl.go

@@ -207,11 +207,12 @@ func GenerateStlEdbData(req *request.StlConfigReq, adminId int) (resp *response.
 	resp.ResidualChartInfo.Unit = edbInfo.Unit
 
 	// 季节性项+残差项
+	nonTrendName := fmt.Sprintf("%Non-Trend/F%g", edbInfo.EdbName, confReq.Fraction)
 	resp.NonTrendChartInfo.DataList = nonTrendChartInfo.DataList
 	resp.NonTrendChartInfo.MaxData = nonTrendChartInfo.MaxData
 	resp.NonTrendChartInfo.MinData = nonTrendChartInfo.MinData
 	resp.NonTrendChartInfo.ClassifyId = edbInfo.ClassifyId
-	resp.NonTrendChartInfo.Title = edbInfo.EdbName + "Non-Trend"
+	resp.NonTrendChartInfo.Title = nonTrendName
 	resp.NonTrendChartInfo.Frequency = edbInfo.Frequency
 	resp.NonTrendChartInfo.Unit = edbInfo.Unit