Explorar o código

fix:商品价格曲线,日期取值的问题

Roc hai 1 ano
pai
achega
88445ca88f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/data/future_good/chart_info.go

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

@@ -204,7 +204,7 @@ func GetChartEdbData(chartInfoId int, startDate, endDate string, edbInfoMapping,
 
 	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 = []models.XData{
 		{