Browse Source

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

Roc 1 year ago
parent
commit
a34e289bb0
1 changed files with 1 additions and 6 deletions
  1. 1 6
      services/chart/chart_info.go

+ 1 - 6
services/chart/chart_info.go

@@ -571,12 +571,7 @@ func getEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate
 						err = tmpErr
 						return
 					}
-					latestDateTime, tmpErr := time.ParseInLocation(utils.FormatDate, v.LatestDate, time.Local)
-					if tmpErr != nil {
-						err = tmpErr
-						return
-					}
-					v.LatestDate = latestDateTime.AddDate(0, 0, day).Format(utils.FormatDate)
+					v.LatestDate = v.LatestDate.AddDate(0, 0, day)
 				}
 			} else {
 				startDateReal = startDate