Browse Source

Merge branch 'bug/4084'

Roc 1 year ago
parent
commit
290baadab6

+ 4 - 3
services/data/future_good/chart_info.go

@@ -480,8 +480,9 @@ func BarChartData(edbInfoMapping *data_manage.ChartEdbInfoMapping, futureGoodMap
 			//	err = tmpErr
 			//	err = tmpErr
 			//	return
 			//	return
 			//}
 			//}
-			tmpRealDateTime := findDateTime
-			tmpFindDataValue, tmpIsFind := edbDataMap[futureGoodMapping.FutureGoodEdbInfoId][findDateTime.Format(utils.FormatDate)]
+			//tmpRealDateTime := findDateTime	// 按照配置找到的日期
+			tmpRealDateTime := realDateTime // 实际现货的日期
+			tmpFindDataValue, tmpIsFind := edbDataMap[futureGoodMapping.FutureGoodEdbInfoId][tmpRealDateTime.Format(utils.FormatDate)]
 			yDataMap[futureGoodMapping.FutureGoodEdbInfoId] = tmpFindDataValue
 			yDataMap[futureGoodMapping.FutureGoodEdbInfoId] = tmpFindDataValue
 
 
 			findDataList = append(findDataList, tmpFindDataValue)
 			findDataList = append(findDataList, tmpFindDataValue)
@@ -547,7 +548,7 @@ func BarChartData(edbInfoMapping *data_manage.ChartEdbInfoMapping, futureGoodMap
 
 
 		yDataList = append(yDataList, data_manage.YData{
 		yDataList = append(yDataList, data_manage.YData{
 			Date:           yDate,
 			Date:           yDate,
-			ConfigDate:     findDateTime,
+			ConfigDate:     realDateTime,
 			Value:          findDataList,
 			Value:          findDataList,
 			NoDataEdbList:  noDataIdList,
 			NoDataEdbList:  noDataIdList,
 			XEdbInfoIdList: xEdbInfoIdList,
 			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{
 		yDataList = append(yDataList, data_manage.YData{
 			Date:           yDate,
 			Date:           yDate,
-			ConfigDate:     findDateTime,
+			ConfigDate:     realDateTime,
 			Value:          findDataList,
 			Value:          findDataList,
 			NoDataEdbList:  noDataIdList,
 			NoDataEdbList:  noDataIdList,
 			XEdbInfoIdList: xEdbInfoIdList,
 			XEdbInfoIdList: xEdbInfoIdList,