From 87875ba6d054edb3f5718b8de61b9b5be7cb7d7b Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Mon, 3 Apr 2023 14:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E5=8F=AA=E6=9F=A5=E8=AF=A2=E7=94=BB?= =?UTF-8?q?=E5=AE=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index a8d2a71..7650588 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -550,7 +550,7 @@ func FindUserList(req *artistInfoUser.FindUsersRequest) (rep []*artistInfoUser.U datas = []model.User{} tx = db.DB.Model(model.User{}). Joins("LEFT JOIN real_name rn ON rn.id = sys_user.real_name_id"). - Preload("RealNameInfo").Where("sys_user.mgmt_artist_uid!=''") + Preload("RealNameInfo") //.Where("sys_user.mgmt_artist_uid!=''") ) if req.InvitedCode != "" { tx = tx.Where("invited_code = ?", req.InvitedCode) @@ -571,7 +571,7 @@ func FindUserList(req *artistInfoUser.FindUsersRequest) (rep []*artistInfoUser.U }) } if req.IsArtist { - tx = tx.Where("mgmt_artist_uid !='' ") + tx = tx.Where("sys_user.mgmt_artist_uid !='' ") } if req.IsLock { tx = tx.Where("is_lock=true")