Skip to content

Commit

Permalink
fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzuo committed Sep 21, 2023
1 parent 9e03242 commit 6da4302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/client/golang/templates/[model]_query.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func (q *{{.model.Name}}Query) FindBySQL(query string, args ...interface{}) ([]*
return {{firstWordLowerCamel .model.Name}}s, nil
}

func (q *{{.model.Name}}Query) Where(clause ...*queryx.Clause) *{{.model.Name}}Query {
q.selectStatement.Where(clause...)
func (q *{{.model.Name}}Query) Where(clauses ...*queryx.Clause) *{{.model.Name}}Query {
q.selectStatement.Where(clauses...)
return q
}

Expand Down

0 comments on commit 6da4302

Please sign in to comment.