Commit a26c6a12 authored by haoyanbin's avatar haoyanbin

teamName

parent 68c5099c
......@@ -84,6 +84,7 @@ type OrgMatchInfo struct {
SeasonId string `json:"seasonId" comment:"赛季id"`
SeasonName string `json:"seasonName" comment:"赛季名称"`
LeagueName string `json:"leagueName" comment:"联赛级别"`
TeamName string `json:"teamName" comment:"球队名称"`
CountMatch string `json:"countMatch" comment:"场次"`
dto.TotalScoring
}
......
......@@ -165,7 +165,7 @@ func (e *OrgPlayer) StatisticsScoringAvg(playerId string, seasonId string, stati
var err error
field := ""
field += "omtp.id, ol.league_name, os.season_name, om.season_id, count(omtp.id)as count_match," +
field += "omtp.id, ol.league_name, os.season_name, om.season_id, count(omtp.id)as count_match, ot.team_name," +
"sum(omtp.scoring)as scoring," +
"sum(omtp.rebound)as rebound," +
"sum(omtp.assist)as assist," +
......@@ -181,6 +181,7 @@ func (e *OrgPlayer) StatisticsScoringAvg(playerId string, seasonId string, stati
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").
Joins("left join org_season as os on os.id = om.season_id").
Joins("left join org_team as ot on ot.id = omtp.team_id").
Scopes(cDto.SetWhere("omtp", "player_id", playerId)).
Where("om.season_id = ?", seasonId).
Group("om.season_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