Эх сурвалжийг харах

固定日期时,限制指标的开始日期

xyxie 6 сар өмнө
parent
commit
7ef6dc22b0

+ 2 - 2
services/data/range_analysis/chart_info.go

@@ -665,13 +665,13 @@ func getChartDataByEdbInfo(edbInfoMapping *data_manage.ChartEdbInfoMapping, req
 		// 智能划分得到一个开始日期,和结束日期
 		var startDateTime, endDateTime time.Time
 		startDateTime = edbStartDateTime
-		/*if req.AutoDateConf.IsAutoStartDate == 0 { //固定设置
+		if req.AutoDateConf.IsAutoStartDate == 0 { //固定设置
 			startDate := req.AutoDateConf.StartDate
 			if startDate == "" {
 				startDate = "2020-01-01"
 			}
 			startDateTime, _ = time.ParseInLocation(utils.FormatDate, startDate, time.Local)
-		} else {
+		} /*else {
 			startConf := req.AutoDateConf.StartDateConf
 			startDate := ""
 			if startConf.BaseDateType == 0 { //