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

+ 2 - 3
services/data/chart_info.go

@@ -3462,8 +3462,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 		}
 
 		// 自定义右轴
-		//if seasonConfig.RightAxis.IndicatorType == 1 {
-			//dataResp.RightAxis.EdbInfoList = quarterDataList[0].DataList
+		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
@@ -3479,7 +3478,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 				dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
 				dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
 			}
-		//}
+		}
 	}
 
 	return