|
@@ -3462,13 +3462,13 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
|
|
|
}
|
|
|
|
|
|
|
|
|
- if seasonConfig.RightAxis.IndicatorType == 1 {
|
|
|
+
|
|
|
|
|
|
startTime, _ := time.Parse(utils.FormatDate, mappingItem.StartDate)
|
|
|
for i := len(quarterDataList) - 1; i > len(quarterDataList)-2 && i > 0; i-- {
|
|
|
rightMappingItem := mappingItem
|
|
|
|
|
|
- tbzDataList, maxValue, minValue, e := GetEdbDataTbzForSeason(mappingItem.Frequency, quarterDataList[i].DataList, startTime)
|
|
|
+ tbzDataList, minValue, maxValue, e := GetEdbDataTbzForSeason(mappingItem.Frequency, quarterDataList[i].DataList, startTime)
|
|
|
if e != nil {
|
|
|
err = errors.New("计算同比值失败, Err:" + e.Error())
|
|
|
return
|
|
@@ -3479,8 +3479,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
|
|
|
dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
|
|
|
dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
|
|
|
}
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
return
|