|
@@ -70,7 +70,7 @@ func AddMultipleGraphConfigEdbMappingList(items []*MultipleGraphConfigEdbMapping
|
|
|
|
|
|
func DeleteMultipleGraphConfigEdbMappingByEdbIds(configId, source int, edbIds []int) (err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|
|
|
- sql := `DELETE FROM multiple_graph_config_edb_mapping WHERE multiple_graph_config_id = ? AND source = ? AND edb_id IN (` + utils.GetOrmInReplace(len(edbIds)) + `) `
|
|
|
+ sql := `DELETE FROM multiple_graph_config_edb_mapping WHERE multiple_graph_config_id = ? AND source = ? AND edb_info_id IN (` + utils.GetOrmInReplace(len(edbIds)) + `) `
|
|
|
_, err = o.Raw(sql, configId, source, edbIds).Exec()
|
|
|
return
|
|
|
}
|