Browse Source

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

zqbao 5 tháng trước cách đây
mục cha
commit
a5c32986f9
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  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"
 	}
 
 	//指标数据