|
@@ -93,17 +93,14 @@ func ReplaceMultipleGraphConfigChartEdb(oldEdbInfo, newEdbInfo *EdbInfo) (replac
|
|
|
}
|
|
|
}()
|
|
|
//替换multiple_graph_config中的指标
|
|
|
- {
|
|
|
- multipleGraphConfigList := make([]*MultipleGraphConfig, 0)
|
|
|
- csql := `SELECT * FROM multiple_graph_config WHERE (edb_info_id_a=? or edb_info_id_b=?)`
|
|
|
- _, err = to.Raw(csql, oldEdbInfo.EdbInfoId, oldEdbInfo.EdbInfoId).QueryRows(&multipleGraphConfigList)
|
|
|
- if err != nil {
|
|
|
- errmsg = "获取指标关联图表配置信息失败:Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- if len(multipleGraphConfigList) == 0 {
|
|
|
- return
|
|
|
- }
|
|
|
+ multipleGraphConfigList := make([]*MultipleGraphConfig, 0)
|
|
|
+ csql := `SELECT * FROM multiple_graph_config WHERE (edb_info_id_a=? or edb_info_id_b=?)`
|
|
|
+ _, err = to.Raw(csql, oldEdbInfo.EdbInfoId, oldEdbInfo.EdbInfoId).QueryRows(&multipleGraphConfigList)
|
|
|
+ if err != nil {
|
|
|
+ errmsg = "获取指标关联图表配置信息失败:Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if len(multipleGraphConfigList) > 0 {
|
|
|
replaceConfigTotal = len(multipleGraphConfigList)
|
|
|
configIdMap := make(map[int]int)
|
|
|
configIds := make([]int, 0)
|