diff --git a/src/implement/user_level_implement.go b/src/implement/user_level_implement.go index b02a727..be530b8 100644 --- a/src/implement/user_level_implement.go +++ b/src/implement/user_level_implement.go @@ -52,7 +52,7 @@ func (u UserLevelDb) UserLevelAllByAsc() ([]*model.UserLevel, error) { func (u UserLevelDb) UserLevelAllByAscByPage(page, limit int) ([]*model.UserLevel, int64, error) { var m []*model.UserLevel - total, err := u.Db.Where("is_use = ?", 1).Asc("level_weight").FindAndCount(&m) + total, err := u.Db.Asc("level_weight").FindAndCount(&m) if err != nil { return nil, 0, zhios_order_relate_logx.Warn(err) }