Commit dee6a77e authored by haoyanbin's avatar haoyanbin

Other

parent 783f43c8
......@@ -240,7 +240,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
field := "om.id, om.rounds, om.grouping," +
"om.team_a_id,om.team_b_id,om.team_a_score,om.team_b_score," +
"om.match_start_time, om.match_end_time, omtp.other_team_id," +
"om.match_start_time, om.match_end_time, ot.team_name as other_team," +
"sum(omtp.scoring)as scoring," +
"sum(omtp.rebound)as rebound," +
"sum(omtp.assist)as assist," +
......@@ -254,6 +254,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
err = e.Orm.Table("org_match as om").
Select(field).
Joins("left join org_match_team_player as omtp on omtp.match_id = om.id and omtp.rounds = om.rounds").
Joins("left join org_team as ot on omtp.other_team_id = ot.id").
Where("omtp.match_id in (?)", matchId).
Where("omtp.player_id = ? ", c.PlayerId).
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