Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
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
曲欣亮
member-api
Commits
a516c04d
Commit
a516c04d
authored
Jan 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
9a8af575
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
9 deletions
+44
-9
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+44
-9
No files found.
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
a516c04d
...
...
@@ -105,17 +105,57 @@ public class AdminReviewController {
@ResponseBody
@PostMapping
({
"getNewAsianRoundList"
,
"getBestMvListByGroup"
})
@ApiOperation
(
"查询亚新榜单"
)
@ApiOperation
(
"查询亚新榜单
(全部分组)
"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"keyword"
,
value
=
"搜索关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"review_state"
,
value
=
"评委意见(3参赛 4参赛备选 5参展)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"ext_type"
,
value
=
"获奖类型(前端根据审片时保存到数据库的对应字段进行检索)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"review_round"
,
value
=
"第2或3选(2,3)"
),
})
public
Object
getBestMvListByGroup
(
String
keyword
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
)
{
Page
page
=
new
Page
(
1L
,
999999999999L
);
List
<
Map
<
String
,
Object
>>
ugList
=
reviewService
.
queryUserGroupListByReviewRecord
(
2
,
review_round
);
for
(
Map
<
String
,
Object
>
ugMap
:
ugList
)
{
Integer
ugId
=
((
Number
)
ugMap
.
get
(
"group_id"
)).
intValue
();
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryBestMvListByGroup
(
keyword
,
ugId
,
review_state
,
review_round
,
ext_type
,
page
);
ugMap
.
put
(
"list"
,
list
);
}
return
Rjx
.
jsonOk
().
setData
(
ugList
);
}
@ResponseBody
@PostMapping
({
"getUserGroupListByReviewRecord"
})
@ApiOperation
(
"查询参与评审环节的评委组"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"enroll_type_id"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"review_round"
),
})
public
Object
queryUserGroupListByReviewRecord
(
Integer
enroll_type_id
,
Integer
review_round
)
{
XRException
.
assertNotBlank
(
"影片性质不能为空"
,
enroll_type_id
);
XRException
.
assertNotBlank
(
"审片环节不能为空"
,
review_round
);
List
<
Map
<
String
,
Object
>>
ugList
=
reviewService
.
queryUserGroupListByReviewRecord
(
enroll_type_id
,
review_round
);
return
Rjx
.
jsonOk
().
setData
(
ugList
);
}
@ResponseBody
@PostMapping
({
"getBestMvList"
})
@ApiOperation
(
"查询亚新榜单(单个分组)"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"keyword"
,
value
=
"搜索关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"review_state"
,
value
=
"评委意见(3参赛 4参赛备选 5参展)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"user_group_id"
,
value
=
"评委组ID)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"ext_type"
,
value
=
"获奖类型(前端根据审片时保存到数据库的对应字段进行检索)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"review_round"
,
value
=
"第2或3选(2,3)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"limit"
,
value
=
"分页大小"
),
})
public
Object
getBestMvList
ByGroup
(
public
Object
getBestMvList
(
String
keyword
,
Integer
user_group_id
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
,
...
...
@@ -124,13 +164,8 @@ public class AdminReviewController {
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
ugList
=
reviewService
.
queryUserGroupListByReviewRecord
(
2
,
review_round
);
for
(
Map
<
String
,
Object
>
ugMap
:
ugList
)
{
Integer
ugId
=
((
Number
)
ugMap
.
get
(
"group_id"
)).
intValue
();
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryBestMvListByGroup
(
keyword
,
ugId
,
review_state
,
review_round
,
ext_type
,
page
);
ugMap
.
put
(
"list"
,
list
);
}
return
Rjx
.
jsonOk
().
setData
(
ugList
).
setPage
(
page
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryBestMvListByGroup
(
keyword
,
user_group_id
,
review_state
,
review_round
,
ext_type
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
@ResponseBody
...
...
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