|
@@ -503,7 +503,7 @@ func GetChartDataByEdbInfoList(chartInfoId int, dateType, startYear int, startDa
|
|
|
dataResp = models.ChartRangeAnalysisDataResp{ChartRangeAnalysisExtraConf: req}
|
|
|
if req.MultipleGraphConfigId > 0 {
|
|
|
multipleGraphConfigEdbMappingList, e := data_manage.GetMultipleGraphConfigEdbMappingListByIdAndSource(req.MultipleGraphConfigId, utils.CHART_SOURCE_RANGE_ANALYSIS)
|
|
|
- if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ if e != nil && !utils.IsErrNoRow(e) {
|
|
|
err = fmt.Errorf("获取区间计算图表, 指标信息失败, Err:" + e.Error())
|
|
|
return
|
|
|
}
|
|
@@ -628,7 +628,7 @@ func GetChartDataByEdbInfoListBySeries(chartInfoId int, dateType, startYear int,
|
|
|
// 查询配置关联关系
|
|
|
if req.MultipleGraphConfigId > 0 {
|
|
|
multipleGraphConfigEdbMappingList, e := data_manage.GetMultipleGraphConfigEdbMappingListByIdAndSource(req.MultipleGraphConfigId, utils.CHART_SOURCE_RANGE_ANALYSIS)
|
|
|
- if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ if e != nil && !utils.IsErrNoRow(e) {
|
|
|
err = fmt.Errorf("获取区间计算图表, 指标信息失败, Err:" + e.Error())
|
|
|
return
|
|
|
}
|