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
00b342da
Commit
00b342da
authored
Jan 25, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Club
parent
9cfe5f25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
org_player_rank.go
app/mobile/service/dto/org_player_rank.go
+4
-1
org_player_rank.go
app/mobile/service/org_player_rank.go
+3
-1
No files found.
app/mobile/service/dto/org_player_rank.go
View file @
00b342da
...
...
@@ -14,7 +14,10 @@ type OrgPlayerRankGetPageReply struct {
Id
string
`json:"id"`
Rank
string
`json:"rank"`
LeagueName
string
`json:"leagueName"`
TeamName
string
`json:"leagueName"`
TeamName
string
`json:"teamName"`
ClubName
string
`json:"clubName"`
ClubLogo
string
`json:"clubLogo"`
ClubQrcode
string
`json:"clubQrcode"`
PlayerName
string
`json:"playerName"`
PlayerNumber
string
`json:"playerNumber" comment:"球衣号码"`
PlayerImg
string
`json:"playerImg"`
...
...
app/mobile/service/org_player_rank.go
View file @
00b342da
...
...
@@ -20,7 +20,8 @@ func (e *OrgPlayerRank) GetPage(c *dto.OrgPlayerRankGetPageReq, p *actions.DataP
var
err
error
err
=
e
.
Orm
.
Table
(
"org_match_team_player as omtp"
)
.
Select
(
"omtp.player_id as id, ol.league_name, omtp.player_name, omtp.player_number,"
+
Select
(
"omtp.player_id as id, omtp.player_name, omtp.player_number,"
+
"ol.league_name, oc.club_name, oc.club_logo, oc.club_qrcode,"
+
"sum(omtp.scoring)as scoring,"
+
"sum(omtp.rebound)as rebound,"
+
"sum(omtp.assist)as assist,"
+
...
...
@@ -31,6 +32,7 @@ func (e *OrgPlayerRank) GetPage(c *dto.OrgPlayerRankGetPageReq, p *actions.DataP
"sum(omtp.two_point_shot)as two_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_club as oc on oc.id = omtp.club_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_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