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
5efc4748
Commit
5efc4748
authored
Mar 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
7e34a163
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
+32
-2
FilmReportService.java
...in/java/com/egolm/film/api/service/FilmReportService.java
+1
-0
FilmReportServiceImpl.java
...om/egolm/film/api/service/impl/FilmReportServiceImpl.java
+20
-2
AdminReportController.java
...a/com/egolm/film/api/web/admin/AdminReportController.java
+11
-0
No files found.
src/main/java/com/egolm/film/api/service/FilmReportService.java
View file @
5efc4748
...
...
@@ -12,4 +12,5 @@ public interface FilmReportService {
List
<
Map
<
String
,
Object
>>
directorReport
(
String
playactor_name
,
Page
page
);
Map
<
String
,
Object
>
directorDetail
(
String
playactor_name
);
List
<
Map
<
String
,
Object
>>
queryUserViewReport
(
Page
page
);
List
<
Map
<
String
,
Object
>>
queryUserReiewReport
(
Integer
user_id
,
Page
page
);
}
src/main/java/com/egolm/film/api/service/impl/FilmReportServiceImpl.java
View file @
5efc4748
...
...
@@ -196,8 +196,26 @@ public class FilmReportServiceImpl implements FilmReportService {
return
jdbcTemplate
.
limit
(
sql
,
page
);
}
public
static
void
main
(
String
[]
args
)
{
new
FilmReportServiceImpl
().
queryUserViewReport
(
null
);
@Override
public
List
<
Map
<
String
,
Object
>>
queryUserReiewReport
(
Integer
user_id
,
Page
page
)
{
String
sql
=
""
+
"select "
+
"rr.*, "
+
"DATEDIFF(now(), rr.create_time) push_days, "
+
"r.review_round review_round_now, "
+
"r.review_state review_state_now, "
+
"r.opt_state, "
+
"r.allot_state, "
+
"mf.en_name, "
+
"mf.cn_name "
+
"from "
+
"fc_review_record rr "
+
"left join fc_review r on r.id = rr.review_id "
+
"left join fc_member_film mf on mf.id = r.film_id "
+
"where "
+
"rr.user_id = "
+
user_id
;
return
jdbcTemplate
.
limit
(
sql
,
page
);
}
}
src/main/java/com/egolm/film/api/web/admin/AdminReportController.java
View file @
5efc4748
...
...
@@ -95,4 +95,15 @@ public class AdminReportController {
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
@PostMapping
(
"user_review_report"
)
@ApiOperation
(
"评委观看统计"
)
public
Object
user_review_report
(
Integer
user_id
,
Long
index
,
Long
limit
,
String
[]
limitKey
)
{
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
,
limitKey
);
List
<
Map
<
String
,
Object
>>
list
=
filmReportService
.
queryUserReiewReport
(
user_id
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
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