Browse Source

fix:商品价格曲线日期取值问题修复

Roc 1 year ago
parent
commit
4e6ad81cb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/chart/future_good/chart_info.go

+ 1 - 1
services/chart/future_good/chart_info.go

@@ -216,7 +216,7 @@ func GetChartEdbData(chartInfoId int, startDate, endDate string, edbInfoMapping,
 
 
 	edbList = append(edbList, futureGoodMappingList...)
 	edbList = append(edbList, futureGoodMappingList...)
 
 
-	xEdbIdValue, yDataList, err = BarChartData(edbList[0], futureGoodEdbInfoList, edbDataListMap, barChartInfoDateList, regionType, latestDate)
+	xEdbIdValue, yDataList, err = BarChartData(edbList[0], futureGoodEdbInfoList, edbDataListMap, barChartInfoDateList, regionType, edbInfoMapping.EndDate)
 
 
 	xDataList = []chart_info.XData{
 	xDataList = []chart_info.XData{
 		{
 		{