From 869f8fe86903ba3468a92b7969baf47d523a3f3e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 6 Apr 2023 12:08:50 +0800 Subject: [PATCH] update --- internal/logic/domain/group/repo/group_user_repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/domain/group/repo/group_user_repo.go b/internal/logic/domain/group/repo/group_user_repo.go index cd4817e..36b4628 100644 --- a/internal/logic/domain/group/repo/group_user_repo.go +++ b/internal/logic/domain/group/repo/group_user_repo.go @@ -40,7 +40,7 @@ func (*groupUserRepo) ListUser(groupId int64) ([]model.GroupUser, error) { // ListBannedUser 获取群组禁言用户信息 func (*groupUserRepo) ListBannedUser(groupId int64) ([]model.GroupUser, error) { var groupUsers []model.GroupUser - err := db.DB.Find(&groupUsers, "group_id = ? and status", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error + err := db.DB.Find(&groupUsers, "group_id = ? and status = ?", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error if err != nil { return nil, gerrors.WrapError(err) }