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
b99b8b34
Commit
b99b8b34
authored
Jan 29, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
110d5c47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
org_team_match_evaluate.go
app/operate/apis/org_team_match_evaluate.go
+8
-0
org_team_match_evaluate.go
app/operate/service/dto/org_team_match_evaluate.go
+1
-0
org_team_match_evaluate.go
app/operate/service/org_team_match_evaluate.go
+2
-1
No files found.
app/operate/apis/org_team_match_evaluate.go
View file @
b99b8b34
...
...
@@ -27,6 +27,13 @@ func (e OrgTeamMatchEvaluate) getTeamId(c *gin.Context) string {
return
teamId
}
func
(
e
OrgTeamMatchEvaluate
)
getClubId
(
c
*
gin
.
Context
)
string
{
sOrgTeamUser
:=
service
.
OrgClubUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sOrgTeamUser
.
Service
)
_
,
teamId
:=
sOrgTeamUser
.
GetClubId
(
user
.
GetUserId
(
c
))
return
teamId
}
// GetPage <球队>教练评价列表
// @Summary <球队>教练评价列表
// @Description <球队>教练评价列表
...
...
@@ -55,6 +62,7 @@ func (e OrgTeamMatchEvaluate) GetPage(c *gin.Context) {
var
count
int64
req
.
TeamId
=
e
.
getTeamId
(
c
)
req
.
ClubId
=
e
.
getClubId
(
c
)
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
if
err
!=
nil
{
...
...
app/operate/service/dto/org_team_match_evaluate.go
View file @
b99b8b34
...
...
@@ -9,6 +9,7 @@ import (
type
OrgTeamMatchEvaluateGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
ClubId
string
`form:"clubId" search:"-"`
//联赛级别id
TeamId
string
`form:"teamId" search:"-"`
//联赛级别id
LeagueId
string
`form:"leagueId" search:"type:exact;column:league_id;table:om" comment:"联赛级别id"`
//联赛级别id
DivisionId
string
`form:"divisionId" search:"type:exact;column:division_id;table:om" comment:"赛区id"`
//赛区id
...
...
app/operate/service/org_team_match_evaluate.go
View file @
b99b8b34
...
...
@@ -37,9 +37,10 @@ func (e *OrgTeamMatchEvaluate) GetPage(c *dto.OrgTeamMatchEvaluateGetPageReq, p
cDto
.
Paginate
(
c
.
GetPageSize
(),
c
.
GetPageIndex
()),
actions
.
Permission
(
"omtp"
,
p
),
cDto
.
PassDel
(
"omtp"
),
cDto
.
SetWhere
(
"omtp"
,
"team_id"
,
c
.
TeamId
),
cDto
.
SetWhere
(
"omtp"
,
"club_id"
,
c
.
ClubId
),
)
.
Where
(
"om.status=?"
,
3
)
.
Where
(
"omtp.team_id=?"
,
c
.
TeamId
)
.
Find
(
list
)
.
Limit
(
-
1
)
.
Offset
(
-
1
)
.
Count
(
count
)
.
Error
if
err
!=
nil
{
...
...
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