Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoyanbin
nbya
Commits
05414353
Commit
05414353
authored
Jan 26, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get-match-season
parent
dee6a77e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
org_player.go
app/mobile/service/dto/org_player.go
+2
-0
org_player.go
app/mobile/service/org_player.go
+3
-1
No files found.
app/mobile/service/dto/org_player.go
View file @
05414353
...
...
@@ -99,6 +99,8 @@ type OrgPlayerRoundsScoring struct {
MatchStartTime
string
`json:"matchStartTime"`
MatchEndTime
string
`json:"matchEndTime"`
TeamName
string
`json:"teamName"`
SeasonName
string
`json:"seasonName" comment:"赛季名称"`
LeagueName
string
`json:"leagueName" comment:"联赛级别"`
dto
.
RoundsScoring
}
...
...
app/mobile/service/org_player.go
View file @
05414353
...
...
@@ -275,7 +275,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
func
(
e
*
OrgPlayer
)
GetSeasonRoundsScoring
(
playerId
string
,
matchId
[]
string
,
data
*
[]
dto
.
OrgPlayerRoundsScoring
)
error
{
var
err
error
field
:=
"om.season_id as id, omtp.team_id, ot.team_name,"
+
field
:=
"om.season_id as id, omtp.team_id, ot.team_name,
ol.league_name, os.season_name,
"
+
"sum(omtp.scoring)as scoring,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.assist)as assist,"
+
...
...
@@ -290,6 +290,8 @@ func (e *OrgPlayer) GetSeasonRoundsScoring(playerId string, matchId []string, da
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.team_id = ot.id"
)
.
Joins
(
"left join org_league as ol on om.league_id = ol.id"
)
.
Joins
(
"left join org_season as os on om.season_id = os.id"
)
.
Where
(
"omtp.match_id in (?)"
,
matchId
)
.
Where
(
"omtp.player_id = ? "
,
playerId
)
.
Group
(
"om.season_id"
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment