Browse Source

fix:商品价格曲线,期货合约的日期取现货指标有值的日期,即取2024.1.19,若有些合约在2024.1.19无值,则为空

Roc 1 year ago
parent
commit
31dc6f08a0

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

@@ -548,7 +548,7 @@ func BarChartData(edbInfoMapping *data_manage.ChartEdbInfoMapping, futureGoodMap
 
 		yDataList = append(yDataList, data_manage.YData{
 			Date:           yDate,
-			ConfigDate:     findDateTime,
+			ConfigDate:     realDateTime,
 			Value:          findDataList,
 			NoDataEdbList:  noDataIdList,
 			XEdbInfoIdList: xEdbInfoIdList,

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

@@ -384,7 +384,7 @@ func ProfitChartChartData(baseDataList []*data_manage.EdbDataList, futureGoodEdb
 
 		yDataList = append(yDataList, data_manage.YData{
 			Date:           yDate,
-			ConfigDate:     findDateTime,
+			ConfigDate:     realDateTime,
 			Value:          findDataList,
 			NoDataEdbList:  noDataIdList,
 			XEdbInfoIdList: xEdbInfoIdList,