This commit is contained in:
wangchuxiao
2023-03-27 19:24:16 +08:00
parent 7becc2cfdd
commit 01f4a206c7
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func (g *GroupMemberGorm) UpdateRoleLevel(ctx context.Context, groupID string, u
}
func (g *GroupMemberGorm) Find(ctx context.Context, groupIDs []string, userIDs []string, roleLevels []int32) (groupMembers []*relation.GroupMemberModel, err error) {
db := g.DB
db := g.db(ctx)
if len(groupIDs) > 0 {
db = db.Where("group_id in (?)", groupIDs)
}