|
|
@@ -54,7 +54,7 @@ func UserLevelDescByWeightLow(session *xorm.Session) (userIds []int, err error) |
|
|
|
} |
|
|
|
func UserLevelInIDescByWeightLowWithOne(Db *xorm.Engine) (*model.UserLevel, error) { |
|
|
|
var ms model.UserLevel |
|
|
|
has, err := Db.Asc("level_weight").Get(&ms) |
|
|
|
has, err := Db.Where("is_use=1").Asc("level_weight").Get(&ms) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|