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),