From 447986c9608bed02b3d66465ea0b8cb2feccf5b1 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 6 Dec 2024 10:57:38 +0800 Subject: [PATCH] update --- src/implement/user_level_implement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }