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
fdfc9ea1
Commit
fdfc9ea1
authored
Dec 28, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
41ae7c8c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
18 deletions
+49
-18
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+1
-1
AdminUserServiceImpl.java
...com/egolm/film/api/service/impl/AdminUserServiceImpl.java
+1
-1
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+33
-2
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+14
-14
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
fdfc9ea1
...
@@ -42,7 +42,7 @@ public interface ReviewService {
...
@@ -42,7 +42,7 @@ public interface ReviewService {
Integer
opt_state
,
Integer
opt_state
,
Page
page
);
Page
page
);
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
Page
page
);
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
String
keyword
,
Integer
review_state
,
Integer
playactor_type
,
Integer
reveiw_round
,
Page
page
);
/**
/**
* 查询评委审片列表
* 查询评委审片列表
...
...
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
fdfc9ea1
...
@@ -122,7 +122,7 @@ public class AdminUserServiceImpl implements AdminUserService {
...
@@ -122,7 +122,7 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override
@Override
public
List
<
Fc_user_group_funs
>
queryGroupFunList
(
Integer
group_id
)
{
public
List
<
Fc_user_group_funs
>
queryGroupFunList
(
Integer
group_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_user_group_fun where group_id = ?"
,
Fc_user_group_funs
.
class
,
group_id
);
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_user_group_fun
s
where group_id = ?"
,
Fc_user_group_funs
.
class
,
group_id
);
}
}
@Override
@Override
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
fdfc9ea1
...
@@ -120,8 +120,39 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -120,8 +120,39 @@ public class ReviewServiceImpl implements ReviewService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
listNewAsianList
(
String
keyword
,
Integer
review_state
,
Integer
playactor_type
,
Integer
reveiw_round
,
Page
page
)
{
String
sql
=
"select r.* from fc_review r, r, fc_review_record_ext rre where r.id = rre"
;
String
sql
=
""
+
"select "
+
"r.id, "
+
"r.film_id, "
+
"r.enroll_type_id, "
+
"r.review_round, "
+
"r.allot_stte, "
+
"r.review_state, "
+
"r.opt_state, "
+
"r.push_time, "
+
"r.review_time, "
+
"rre.ext_title, "
+
"avg(rre.ext_score) ext_score_avg "
+
"from "
+
"fc_review r, fc_review_record rr, fc_review_record_ext rre "
+
"where "
+
"r.id = rr.review_id "
+
"and rr.id = rre.record_id "
+
"and rr.review_round = "
+
reveiw_round
+
" "
+
"and rr.review_state = 2, "
+
"and rr.review_time is not null "
+
"group by "
+
"r.id, "
+
"r.film_id, "
+
"r.enroll_type_id, "
+
"r.review_round, "
+
"r.allot_stte, "
+
"r.review_state, "
+
"r.opt_state, "
+
"r.push_time, "
+
"r.review_time, "
+
"rre.ext_title "
;
return
null
;
return
null
;
}
}
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
fdfc9ea1
...
@@ -92,20 +92,20 @@ public class AdminReviewController {
...
@@ -92,20 +92,20 @@ public class AdminReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
@ResponseBody
//
@ResponseBody
@PostMapping
(
"listNewAsianList"
)
//
@PostMapping("listNewAsianList")
@ApiOperation
(
"查询亚新榜单"
)
//
@ApiOperation("查询亚新榜单")
@ApiImplicitParams
({
//
@ApiImplicitParams({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
//
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
//
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
//
})
public
Object
listNewAsian
(
Long
index
,
Long
limit
)
{
//
public Object listNewAsian(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
(
page
);
//
List<Map<String, Object>> list = reviewService.listNewAsianList(page);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
//
return Rjx.jsonOk().setData(list).setPage(page);
}
//
}
@ResponseBody
@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