瀏覽代碼

刷新设置批量停用启用

kobe6258 1 周之前
父節點
當前提交
8248f64ce5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      services/data/edb_info_relation.go

+ 2 - 0
services/data/edb_info_relation.go

@@ -481,6 +481,8 @@ func GetEdbRelationListByIds(edbIds []int, source int) (total int, list []*data_
 	if len(edbIds) == 0 {
 		return
 	}
+	condition += ` AND e.edb_info_id IN (` + utils.GetOrmInReplace(len(edbIds)) + `)`
+	pars = append(pars, edbIds)
 	list = make([]*data_manage.BaseRelationEdbInfo, 0)
 	// 关联表语句
 	var addFieldStr, joinTableStr string