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
dee6a77e
Commit
dee6a77e
authored
Jan 26, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other
parent
783f43c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
org_player.go
app/mobile/service/org_player.go
+2
-1
No files found.
app/mobile/service/org_player.go
View file @
dee6a77e
...
@@ -240,7 +240,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
...
@@ -240,7 +240,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
field
:=
"om.id, om.rounds, om.grouping,"
+
field
:=
"om.id, om.rounds, om.grouping,"
+
"om.team_a_id,om.team_b_id,om.team_a_score,om.team_b_score,"
+
"om.team_a_id,om.team_b_id,om.team_a_score,om.team_b_score,"
+
"om.match_start_time, om.match_end_time, o
mtp.other_team_id
,"
+
"om.match_start_time, om.match_end_time, o
t.team_name as other_team
,"
+
"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,"
+
...
@@ -254,6 +254,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
...
@@ -254,6 +254,7 @@ func (e *OrgPlayer) GetRoundsScoring(c *dto.OrgPlayerGetInfoReq, matchId []strin
err
=
e
.
Orm
.
Table
(
"org_match as om"
)
.
err
=
e
.
Orm
.
Table
(
"org_match as om"
)
.
Select
(
field
)
.
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_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.other_team_id = ot.id"
)
.
Where
(
"omtp.match_id in (?)"
,
matchId
)
.
Where
(
"omtp.match_id in (?)"
,
matchId
)
.
Where
(
"omtp.player_id = ? "
,
c
.
PlayerId
)
.
Where
(
"omtp.player_id = ? "
,
c
.
PlayerId
)
.
Scopes
(
Scopes
(
...
...
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