xyxie 10 月之前
父节点
当前提交
9084693280
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      models/data_manage/multiple_graph_config_chart_mapping.go

+ 8 - 0
models/data_manage/multiple_graph_config_chart_mapping.go

@@ -166,5 +166,13 @@ func ReplaceMultipleGraphConfigChartEdb(oldEdbInfo, newEdbInfo *EdbInfo) (replac
 			configIdStr = make([]string, 0)
 		}
 	}
+
+	// 替换跨品种标签绑定得到指标ID
+	sql := `UPDATE chart_tag_variety SET edb_info_id=?, modify_time=? WHERE edb_info_id=?`
+	_, err = to.Raw(sql, newEdbInfo.EdbInfoId, time.Now(), oldEdbInfo.EdbInfoId).Exec()
+	if err != nil {
+		errmsg = "更新指标id关联跨品种分析标签失败:Err:" + err.Error()
+		return
+	}
 	return
 }