|
@@ -1687,6 +1687,11 @@ func (this *ChartInfoController) ChartInfoDetailV2() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 没有就返回空数组
|
|
|
+ if len(edbList) <= 0 {
|
|
|
+ edbList = make([]*data_manage.ChartEdbInfoMapping, 0)
|
|
|
+ }
|
|
|
+
|
|
|
resp.EdbInfoList = edbList
|
|
|
resp.XEdbIdValue = xEdbIdValue
|
|
|
resp.YDataList = yDataList
|
|
@@ -2738,6 +2743,11 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *data_manage.ChartInfoView, isCa
|
|
|
chartInfo.ChartClassify = append(chartInfo.ChartClassify, chartClassifyParent)
|
|
|
}
|
|
|
chartInfo.ChartClassify = append(chartInfo.ChartClassify, chartViewClassify)
|
|
|
+
|
|
|
+ // 没有就返回空数组
|
|
|
+ if len(edbList) <= 0 {
|
|
|
+ edbList = make([]*data_manage.ChartEdbInfoMapping, 0)
|
|
|
+ }
|
|
|
resp.EdbInfoList = edbList
|
|
|
//判断是否需要展示英文标识
|
|
|
chartInfo.IsEnChart = data.CheckIsEnChart(chartInfo.ChartNameEn, edbList, chartInfo.Source, chartInfo.ChartType)
|