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
5feeea7d
Commit
5feeea7d
authored
Mar 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a38128d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
FilmReportService.java
...in/java/com/egolm/film/api/service/FilmReportService.java
+1
-1
FilmReportServiceImpl.java
...om/egolm/film/api/service/impl/FilmReportServiceImpl.java
+6
-3
AdminReportController.java
...a/com/egolm/film/api/web/admin/AdminReportController.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/service/FilmReportService.java
View file @
5feeea7d
...
...
@@ -11,6 +11,6 @@ public interface FilmReportService {
Map
<
String
,
Object
>
applyTypeReport
();
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
>>
queryUserViewReport
(
String
keyword
,
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 @
5feeea7d
...
...
@@ -15,6 +15,7 @@ import com.egolm.common.StringUtil;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.FilmReportService
;
import
com.egolm.film.util.SqlWhere
;
@Service
public
class
FilmReportServiceImpl
implements
FilmReportService
{
...
...
@@ -178,7 +179,9 @@ public class FilmReportServiceImpl implements FilmReportService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryUserViewReport
(
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryUserViewReport
(
String
keyword
,
Page
page
)
{
SqlWhere
where
=
new
SqlWhere
();
where
.
lk
(
new
String
[]
{
"u.username"
,
"u.realname"
},
keyword
);
String
sql
=
""
+
"select "
+
"u.uid, "
...
...
@@ -192,13 +195,13 @@ public class FilmReportServiceImpl implements FilmReportService {
+
"fc_user u, "
+
"fc_review_record rr "
+
"where "
+
"rr.user_id = u.uid "
+
"rr.user_id = u.uid "
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
where
.
getStringList
())
+
"group by "
+
"u.uid, "
+
"u.username, "
+
"u.realname "
;
System
.
out
.
println
(
sql
);
return
jdbcTemplate
.
limit
(
sql
,
page
);
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
()
);
}
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReportController.java
View file @
5feeea7d
...
...
@@ -87,11 +87,11 @@ public class AdminReportController {
@ResponseBody
@PostMapping
(
"view_report"
)
@ApiOperation
(
"看片统计"
)
public
Object
user_view_report
(
Long
index
,
Long
limit
,
String
[]
limitKey
)
{
public
Object
user_view_report
(
String
keyword
,
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
.
queryUserViewReport
(
page
);
List
<
Map
<
String
,
Object
>>
list
=
filmReportService
.
queryUserViewReport
(
keyword
,
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