zwxi 9 ماه پیش
والد
کامیت
ce34314cb4
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      services/data/chart_info.go

+ 4 - 2
services/data/chart_info.go

@@ -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
 			}