Commit 110d5c47 authored by haoyanbin's avatar haoyanbin

1

parent 92935185
......@@ -176,6 +176,7 @@ func (e *OrgPlayerRank) GetPageTeam(c *dto.OrgPlayerRankGetPageReq, p *actions.D
err = e.Orm.Table("org_match_team_player as omtp").
Select("omtp.team_id as id, ol.league_name, omtp.player_name, omtp.player_number,"+
"oc.club_name, oc.club_logo, oc.club_qrcode,"+
"sum(omtp.scoring)as scoring,"+
"sum(omtp.rebound)as rebound,"+
"sum(omtp.assist)as assist,"+
......@@ -186,6 +187,7 @@ func (e *OrgPlayerRank) GetPageTeam(c *dto.OrgPlayerRankGetPageReq, p *actions.D
"sum(omtp.two_point_shot)as two_point_shot,"+
"sum(omtp.three_point_shot)as three_point_shot").
Joins("left join org_team as ot on ot.id = omtp.team_id").
Joins("left join org_club as oc on oc.id = ot.club_id").
Joins("left join org_player as op on op.id = omtp.player_id").
Joins("left join org_match as om on omtp.match_id = om.id and omtp.rounds = om.rounds").
Joins("left join org_league as ol on ol.id = om.league_id").
......
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