xyxie 9 months ago
parent
commit
10077789e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/data_manage/edb_info_relation.go

+ 1 - 1
models/data_manage/edb_info_relation.go

@@ -34,7 +34,7 @@ func GetEdbInfoRelationByEdbInfoIds(edbInfoIds []int) (edbIds []int, err error)
 // GetEdbInfoRelationByReferObjectId 查询引用的指标ID
 func GetEdbInfoRelationByReferObjectId(referObjectId int, referObjectType int) (items []*EdbInfoRelation, err error) {
 	o := orm.NewOrmUsingDB("data")
-	msql := ` SELECT * FROM edb_info_relation WHERE referObjectId =? AND referObjectType=?  GROUP BY edb_info_id `
+	msql := ` SELECT * FROM edb_info_relation WHERE refer_object_id =? AND refer_object_type=?  GROUP BY edb_info_id `
 	_, err = o.Raw(msql, referObjectId, referObjectType).QueryRows(&items)
 	return
 }