Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
e6f4b371
Commit
e6f4b371
authored
Jan 02, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
fcfb7000
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
9 deletions
+33
-9
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+3
-1
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+8
-3
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+22
-5
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
e6f4b371
...
@@ -42,7 +42,9 @@ public interface ReviewService {
...
@@ -42,7 +42,9 @@ public interface ReviewService {
Integer
opt_state
,
Integer
opt_state
,
Page
page
);
Page
page
);
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Integer
reveiw_round
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryNewAsianRound3List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryNewAsianRound2List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Page
page
);
/**
/**
* 查询评委审片列表
* 查询评委审片列表
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
e6f4b371
...
@@ -119,8 +119,13 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -119,8 +119,13 @@ public class ReviewServiceImpl implements ReviewService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Integer
review_round
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryNewAsianRound2List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Page
page
)
{
XRException
.
assertNotBlank
(
"评选轮数不能未空"
,
review_round
);
// TODO Auto-generated method stub
return
null
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryNewAsianRound3List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Page
page
)
{
XRException
.
assertNotBlank
(
"获奖类型不能未空"
,
ext_type
);
XRException
.
assertNotBlank
(
"获奖类型不能未空"
,
ext_type
);
String
sql
=
""
String
sql
=
""
+
"select "
+
"select "
...
@@ -142,7 +147,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -142,7 +147,7 @@ public class ReviewServiceImpl implements ReviewService {
+
"fc_review_history rh left join fc_member_film mf on mf.id = rh.film_id "
+
"fc_review_history rh left join fc_member_film mf on mf.id = rh.film_id "
+
"where "
+
"where "
+
"rre.ext_type = '"
+
ext_type
+
"' "
+
"rre.ext_type = '"
+
ext_type
+
"' "
+
"and rh.review_round =
"
+
review_round
+
"
"
+
"and rh.review_round =
3
"
+
"and rre.record_id = rr.id "
+
"and rre.record_id = rr.id "
+
"and rr.review_id = rh.review_id "
+
"and rr.review_id = rh.review_id "
+
"and rh.enroll_type_id = 2 "
+
"and rh.enroll_type_id = 2 "
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
e6f4b371
...
@@ -93,21 +93,38 @@ public class AdminReviewController {
...
@@ -93,21 +93,38 @@ public class AdminReviewController {
}
}
@ResponseBody
@ResponseBody
@PostMapping
(
"listNewAsianList"
)
@PostMapping
(
"listNewAsian
_Round_2_
List"
)
@ApiOperation
(
"查询亚新榜单"
)
@ApiOperation
(
"查询亚新
2选
榜单"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"keyword"
,
value
=
"搜索关键字"
),
@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
=
"review_state"
,
value
=
"评委意见(3参赛 4参赛备选 5参展)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"ext_type"
,
value
=
"获奖类型(前端根据审片时保存到数据库的对应字段进行检索)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"ext_type"
,
value
=
"获奖类型(前端根据审片时保存到数据库的对应字段进行检索)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"reveiw_round"
,
value
=
"审片环节 2,3"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"limit"
,
value
=
"分页大小"
),
})
})
public
Object
listNewAsian
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Integer
reveiw_round
,
Long
index
,
Long
limit
)
{
public
Object
listNewAsian
_Round_2_List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
listNewAsianList
(
keyword
,
review_state
,
ext_type
,
reveiw_round
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryNewAsianRound2List
(
keyword
,
review_state
,
ext_type
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
@ResponseBody
@PostMapping
(
"listNewAsian_Round_3_List"
)
@ApiOperation
(
"查询亚新3选榜单"
)
@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
=
"long"
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
name
=
"limit"
,
value
=
"分页大小"
),
})
public
Object
listNewAsian_Round_3_List
(
String
keyword
,
Integer
review_state
,
String
ext_type
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryNewAsianRound3List
(
keyword
,
review_state
,
ext_type
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
...
...
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