Commit a2983b84 authored by haoyanbin's avatar haoyanbin

1

parent d597c7aa
......@@ -146,6 +146,8 @@ type OrgPlayerGetReply struct {
Id int `json:"id" comment:"球员id"`
ClubId string `json:"clubId" comment:"俱乐部id"`
ClubName string `json:"clubName" comment:"俱乐部名称"`
ClubLogo string `json:"clubLogo" comment:"俱乐部logo"`
ClubQrcode string `json:"clubQrcode" comment:"俱乐部二维码"`
TeamId string `json:"teamId" comment:"球队id"`
TeamName string `json:"teamName" comment:"球队名称"`
SeasonId string `json:"seasonId" comment:"赛季id"`
......
......@@ -44,9 +44,10 @@ func (e *OrgPlayer) Get(d *dto.OrgPlayerGetReq, p *actions.DataPermission, model
var data models.OrgPlayer
err := e.Orm.Table("org_player as op").
Select("op.id,op.club_id,oc.club_name,op.team_id,ot.team_name,"+
"op.player_name,op.player_name_en,op.player_number,"+
"op.position,op.sex,op.player_img,op.share_conf").
Select("op.id,op.club_id,op.player_name,op.player_name_en,op.player_number,"+
"op.position,op.sex,op.player_img,op.share_conf,op.team_id,"+
"oc.club_name,oc.club_logo,oc.club_qrcode,"+
"ot.team_name").
Joins("left join org_club as oc on op.club_id=oc.id").
Joins("left join org_team as ot on op.team_id=ot.id").
Scopes(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment