Skip to content

Commit

Permalink
新增了Counts方法 整合了Paginator和Counts方法
Browse files Browse the repository at this point in the history
  • Loading branch information
tobycroft committed Sep 20, 2022
1 parent b226d92 commit eb7534f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions orm_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,7 @@ func (dba *Orm) Paginator(page ...int) (res Paginate, err error) {
dba.GetISession().GetIBinder().SetBindPrefix(prefix)
dba.where = where

count := int64(0)

count, err = dba.Counts()
count, err := dba.Counts()

//fmt.Println(dba.LastSql())

Expand Down

0 comments on commit eb7534f

Please sign in to comment.