|
@@ -425,8 +425,9 @@ func BarChartData(edbInfoMapping *models.ChartEdbInfoMapping, futureGoodMappingL
|
|
// 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)
|
|
@@ -492,7 +493,7 @@ func BarChartData(edbInfoMapping *models.ChartEdbInfoMapping, futureGoodMappingL
|
|
|
|
|
|
yDataList = append(yDataList, models.YData{
|
|
yDataList = append(yDataList, models.YData{
|
|
Date: yDate,
|
|
Date: yDate,
|
|
- ConfigDate: findDateTime,
|
|
|
|
|
|
+ ConfigDate: realDateTime,
|
|
Value: findDataList,
|
|
Value: findDataList,
|
|
NoDataEdbList: noDataIdList,
|
|
NoDataEdbList: noDataIdList,
|
|
XEdbInfoIdList: xEdbInfoIdList,
|
|
XEdbInfoIdList: xEdbInfoIdList,
|