...
|
...
|
@@ -114,6 +114,7 @@ func (repository *MappingRuleRepository) FindOne(queryOptions map[string]interfa |
|
|
query := sqlbuilder.BuildQuery(tx.Model(mappingRuleModel), queryOptions)
|
|
|
WhereContext(query, queryOptions)
|
|
|
query.SetWhereByQueryOption("name = ?", "name")
|
|
|
query.SetWhereByQueryOption("table_id = ?", "tableId")
|
|
|
query.SetWhereByQueryOption("mapping_rule.mapping_rule_id = ?", "mappingRuleId")
|
|
|
if err := query.First(); err != nil {
|
|
|
if err.Error() == "pg: no rows in result set" {
|
...
|
...
|
|