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
a2983b84
Commit
a2983b84
authored
Jan 25, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d597c7aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
org_player.go
app/mobile/service/dto/org_player.go
+2
-0
org_player.go
app/mobile/service/org_player.go
+4
-3
No files found.
app/mobile/service/dto/org_player.go
View file @
a2983b84
...
@@ -146,6 +146,8 @@ type OrgPlayerGetReply struct {
...
@@ -146,6 +146,8 @@ type OrgPlayerGetReply struct {
Id
int
`json:"id" comment:"球员id"`
Id
int
`json:"id" comment:"球员id"`
ClubId
string
`json:"clubId" comment:"俱乐部id"`
ClubId
string
`json:"clubId" comment:"俱乐部id"`
ClubName
string
`json:"clubName" comment:"俱乐部名称"`
ClubName
string
`json:"clubName" comment:"俱乐部名称"`
ClubLogo
string
`json:"clubLogo" comment:"俱乐部logo"`
ClubQrcode
string
`json:"clubQrcode" comment:"俱乐部二维码"`
TeamId
string
`json:"teamId" comment:"球队id"`
TeamId
string
`json:"teamId" comment:"球队id"`
TeamName
string
`json:"teamName" comment:"球队名称"`
TeamName
string
`json:"teamName" comment:"球队名称"`
SeasonId
string
`json:"seasonId" comment:"赛季id"`
SeasonId
string
`json:"seasonId" comment:"赛季id"`
...
...
app/mobile/service/org_player.go
View file @
a2983b84
...
@@ -44,9 +44,10 @@ func (e *OrgPlayer) Get(d *dto.OrgPlayerGetReq, p *actions.DataPermission, model
...
@@ -44,9 +44,10 @@ func (e *OrgPlayer) Get(d *dto.OrgPlayerGetReq, p *actions.DataPermission, model
var
data
models
.
OrgPlayer
var
data
models
.
OrgPlayer
err
:=
e
.
Orm
.
Table
(
"org_player as op"
)
.
err
:=
e
.
Orm
.
Table
(
"org_player as op"
)
.
Select
(
"op.id,op.club_id,oc.club_name,op.team_id,ot.team_name,"
+
Select
(
"op.id,op.club_id,op.player_name,op.player_name_en,op.player_number,"
+
"op.player_name,op.player_name_en,op.player_number,"
+
"op.position,op.sex,op.player_img,op.share_conf,op.team_id,"
+
"op.position,op.sex,op.player_img,op.share_conf"
)
.
"oc.club_name,oc.club_logo,oc.club_qrcode,"
+
"ot.team_name"
)
.
Joins
(
"left join org_club as oc on op.club_id=oc.id"
)
.
Joins
(
"left join org_club as oc on op.club_id=oc.id"
)
.
Joins
(
"left join org_team as ot on op.team_id=ot.id"
)
.
Joins
(
"left join org_team as ot on op.team_id=ot.id"
)
.
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