zwxi 9 月之前
父节点
当前提交
10658750dc
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      services/data/chart_info.go

+ 3 - 4
services/data/chart_info.go

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