From 8fec641ffdd7ed696f90577bcf9097c2123b9569 Mon Sep 17 00:00:00 2001 From: dorlolo <428192774@qq.com> Date: Thu, 23 Mar 2023 19:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index fde19ea..1847518 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -577,7 +577,7 @@ func FindUserList(req *artistInfoUser.FindUsersRequest) (rep []*artistInfoUser.U tx = tx.Where("is_lock=true") } if req.ArtistRealName != "" { - tx = tx..Clauses(clause.Like{ + tx = tx.Clauses(clause.Like{ Column: "rn.name", Value: "%" + req.ArtistRealName + "%", }) @@ -667,8 +667,8 @@ func GetViewUserList(req *artistInfoUser.FindUsersRequest) (resp []model.UserVie tx = tx.Where("mgmt_artist_uid !='' ") } if req.Keyword != "" { - searchWords:="%"+req.Keyword+"%" - tx = tx.Where("real_name LIKE ? OR invited_code LIKE ? OR tel_num LIKE ?",searchWords,searchWords,searchWords) + searchWords := "%" + req.Keyword + "%" + tx = tx.Where("real_name LIKE ? OR invited_code LIKE ? OR tel_num LIKE ?", searchWords, searchWords, searchWords) } err = tx.Count(&total).Scopes(db.Pagination(req.Page, req.PageSize)).Find(&resp).Error @@ -1115,7 +1115,7 @@ type inviteStatic struct { InvitedCount int64 `gorm:"column:invited_count"` } -func GetInviteStaticList(in *artistInfoUser.GetInviteStatkeyicListRequest) (res *artistInfoUser.GetInviteStaticListResponse, err error) { +func GetInviteStaticList(in *artistInfoUser.GetInviteStaticListRequest) (res *artistInfoUser.GetInviteStaticListResponse, err error) { res = &artistInfoUser.GetInviteStaticListResponse{Data: []*artistInfoUser.GetInviteStaticListData{}, Page: &artistInfoUser.UserCommonPageInfo{ Page: int32(in.Page), PageSize: int32(in.PageSize),