Browse Source

update

master
DengBiao 1 year ago
parent
commit
4738719293
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/logic/app/group_app.go

+ 1
- 1
internal/logic/app/group_app.go View File

@@ -207,7 +207,7 @@ func (*groupApp) SetGroupMemberBanned(ctx context.Context, optId, groupId int64,


//2、更新 `group_user` 的 status 状态 //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 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)})
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、发送推送消息 //3、发送推送消息
for _, u := range userIds { for _, u := range userIds {


Loading…
Cancel
Save