Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yfsoftcom committed Jan 20, 2022
1 parent c90e3d0 commit 36ce04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dbImpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (p *ormImpl) FindObject(q *db.QueryData) (data []map[string]interface{}, er
// err = dbclient.Model(Fake{}).Condition("name = ?", "c").Count(&total).Error()
// total is the count
func (p *ormImpl) Count(q *db.BaseData, total *int64) error {
return p.db.Table(q.Table).Where(fmt.Sprintf("(%s) and deleted_at is null", q.Condition, q.Arguments...).Count(total).Error
return p.db.Table(q.Table).Where(fmt.Sprintf("(%s) and deleted_at is null", q.Condition), q.Arguments...).Count(total).Error
}

//OK
Expand Down

0 comments on commit 36ce04a

Please sign in to comment.