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
a26c6a12
Commit
a26c6a12
authored
Jan 26, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teamName
parent
68c5099c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
org_player.go
app/mobile/service/dto/org_player.go
+1
-0
org_player.go
app/mobile/service/org_player.go
+2
-1
No files found.
app/mobile/service/dto/org_player.go
View file @
a26c6a12
...
@@ -84,6 +84,7 @@ type OrgMatchInfo struct {
...
@@ -84,6 +84,7 @@ type OrgMatchInfo struct {
SeasonId
string
`json:"seasonId" comment:"赛季id"`
SeasonId
string
`json:"seasonId" comment:"赛季id"`
SeasonName
string
`json:"seasonName" comment:"赛季名称"`
SeasonName
string
`json:"seasonName" comment:"赛季名称"`
LeagueName
string
`json:"leagueName" comment:"联赛级别"`
LeagueName
string
`json:"leagueName" comment:"联赛级别"`
TeamName
string
`json:"teamName" comment:"球队名称"`
CountMatch
string
`json:"countMatch" comment:"场次"`
CountMatch
string
`json:"countMatch" comment:"场次"`
dto
.
TotalScoring
dto
.
TotalScoring
}
}
...
...
app/mobile/service/org_player.go
View file @
a26c6a12
...
@@ -165,7 +165,7 @@ func (e *OrgPlayer) StatisticsScoringAvg(playerId string, seasonId string, stati
...
@@ -165,7 +165,7 @@ func (e *OrgPlayer) StatisticsScoringAvg(playerId string, seasonId string, stati
var
err
error
var
err
error
field
:=
""
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.scoring)as scoring,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.assist)as assist,"
+
"sum(omtp.assist)as assist,"
+
...
@@ -181,6 +181,7 @@ func (e *OrgPlayer) StatisticsScoringAvg(playerId string, seasonId string, stati
...
@@ -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_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_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_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
))
.
Scopes
(
cDto
.
SetWhere
(
"omtp"
,
"player_id"
,
playerId
))
.
Where
(
"om.season_id = ?"
,
seasonId
)
.
Where
(
"om.season_id = ?"
,
seasonId
)
.
Group
(
"om.season_id"
)
.
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