|
@@ -3468,12 +3468,14 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
|
|
|
for i := len(quarterDataList) - 1; i > len(quarterDataList)-2 && i > 0; i-- {
|
|
|
rightMappingItem := mappingItem
|
|
|
// 计算同比值
|
|
|
- dataList, _, _, e := GetEdbDataTbzForSeason(mappingItem.Frequency, quarterDataList[i].DataList, startTime)
|
|
|
+ tbzDataList, maxValue, minValue, e := GetEdbDataTbzForSeason(mappingItem.Frequency, quarterDataList[i].DataList, startTime)
|
|
|
if e != nil {
|
|
|
err = errors.New("计算同比值失败, Err:" + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- rightMappingItem.DataList = dataList
|
|
|
+ rightMappingItem.DataList = tbzDataList
|
|
|
+ rightMappingItem.MaxValue = maxValue
|
|
|
+ rightMappingItem.MinValue = minValue
|
|
|
dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
|
|
|
dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
|
|
|
}
|