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

fix:预测指标参与画图,领先、滞后时,预测开始日期也要领先、滞后对应期数

Roc 1 жил өмнө
parent
commit
934f323310

+ 1 - 1
services/data/chart_info.go

@@ -357,7 +357,7 @@ func getEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate
 
 				// 预测指标的开始日期也要偏移
 				{
-					day, tmpErr := utils.GetDaysBetween2Date(utils.FormatDate, startDateReal, startDate)
+					day, tmpErr := utils.GetDaysBetween2Date(utils.FormatDate, startDate, startDateReal)
 					if tmpErr != nil {
 						err = tmpErr
 						return