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
110d5c47
Commit
110d5c47
authored
Jan 29, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
92935185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
org_player_rank.go
app/mobile/service/org_player_rank.go
+2
-0
No files found.
app/mobile/service/org_player_rank.go
View file @
110d5c47
...
@@ -176,6 +176,7 @@ func (e *OrgPlayerRank) GetPageTeam(c *dto.OrgPlayerRankGetPageReq, p *actions.D
...
@@ -176,6 +176,7 @@ func (e *OrgPlayerRank) GetPageTeam(c *dto.OrgPlayerRankGetPageReq, p *actions.D
err
=
e
.
Orm
.
Table
(
"org_match_team_player as omtp"
)
.
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,"
+
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.scoring)as scoring,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.assist)as assist,"
+
"sum(omtp.assist)as assist,"
+
...
@@ -186,6 +187,7 @@ func (e *OrgPlayerRank) GetPageTeam(c *dto.OrgPlayerRankGetPageReq, p *actions.D
...
@@ -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.two_point_shot)as two_point_shot,"
+
"sum(omtp.three_point_shot)as three_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_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_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_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"
)
.
...
...
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