diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index 8b4421d..bbbde00 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -666,6 +666,9 @@ func GetViewUserList(req *artistInfoUser.FindUsersRequest) (resp []model.UserVie if req.IsArtist { tx = tx.Where("mgmt_artist_uid !='' ") } + if req.ArtistRealName != "" { + tx = tx.Where(fmt.Sprintf("real_name LIKE '%%%s%%'", req.ArtistRealName)) + } if req.Keyword != "" { searchWords := "%" + req.Keyword + "%" tx = tx.Where("real_name LIKE ? OR invited_code LIKE ? OR tel_num LIKE ?", searchWords, searchWords, searchWords)