From f816ef2c9a2c083dc8eea03f9b483c2f1df51e26 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 6 Apr 2023 14:10:44 +0800 Subject: [PATCH] update --- internal/logic/app/group_app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index 44daae1..b259699 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -207,6 +207,7 @@ func (*groupApp) SetGroupMemberBanned(ctx context.Context, optId, groupId int64, //2、更新 `group_user` 的 status 状态 db.DB.Model(model.GroupUser{}).Where("user_id in (?) and group_id = ?", userIds, groupId).Updates(model.GroupUser{Status: int(pb.GroupUserStatusType_GROUP_USER_STATUS_Banned)}) + db.DB.Model(model.GroupUser{}).Where("user_id not in (?) and group_id = ?", userIds, groupId).Updates(model.GroupUser{Status: int(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL)}) //3、发送推送消息 for _, u := range userIds {