瀏覽代碼

fix:拟合方程曲线时间段筛选

zqbao 5 月之前
父節點
當前提交
a5c32986f9
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      services/data/line_equation/chart_info.go

+ 6 - 1
services/data/line_equation/chart_info.go

@@ -10,12 +10,13 @@ import (
 	"eta/eta_api/services/data"
 	"eta/eta_api/utils"
 	"fmt"
-	"github.com/shopspring/decimal"
 	"math"
 	"sort"
 	"strconv"
 	"strings"
 	"time"
+
+	"github.com/shopspring/decimal"
 )
 
 type LineEquationResp struct {
@@ -298,6 +299,10 @@ func getConfigData(lineChartInfoConfig request.LineChartInfoReq) (mappingList []
 		startDate = "2020-01-01"
 	case 11:
 		startDate = "2022-01-01"
+	case 12:
+		startDate = "2023-01-01"
+	case 13:
+		startDate = "2024-01-01"
 	}
 
 	//指标数据