修复部分错误
This commit is contained in:
parent
9d8012f1f2
commit
8fec641ffd
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user