fix: query busigroup by ident

This commit is contained in:
Ulric Qin 2022-07-26 18:23:14 +08:00
parent 76e105c93a
commit 3476b95b35
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ func (u *User) BusiGroups(limit int, query string, all ...bool) ([]BusiGroup, er
return lst, err
}
err = session.Where("id=?", t.GroupId).Find(&lst).Error
err = DB().Order("name").Limit(limit).Where("id=?", t.GroupId).Find(&lst).Error
}
return lst, err