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
8e4b0dc1
Commit
8e4b0dc1
authored
Jan 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
fe0da9b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+1
-1
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+18
-2
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
8e4b0dc1
...
...
@@ -108,6 +108,6 @@ public interface ReviewService {
List
<
Map
<
String
,
Object
>>
queryTimeoutList
(
String
keyword
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryReviewRecordLogList
(
Page
page
);
List
<
Map
<
String
,
Object
>>
queryReviewRecordLogList
(
String
username
,
Integer
enroll_type_id
,
Integer
review_state
,
Page
page
);
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
8e4b0dc1
...
...
@@ -700,8 +700,24 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryReviewRecordLogList
(
Page
page
)
{
return
jdbcTemplate
.
limit
(
"select rr.*, mf.en_name, mf.cn_name, u.username from fc_review_record rr left join fc_user u on u.uid = rr.user_id left join fc_review r on r.id = rr.review_id left join fc_member_film mf on mf.id = r.film_id"
,
page
);
public
List
<
Map
<
String
,
Object
>>
queryReviewRecordLogList
(
String
username
,
Integer
enroll_type_id
,
Integer
review_state
,
Page
page
)
{
String
sql
=
""
+
"select "
+
"rr.*, "
+
"r.enroll_type_id, "
+
"mf.en_name, "
+
"mf.cn_name, "
+
"u.username, "
+
"ug.group_name "
+
"from "
+
"fc_review_record rr "
+
"left join fc_user u on u.uid = rr.user_id "
+
"left join fc_user group ug on ug.group_id = u.group_id "
+
"left join fc_review r on r.id = rr.review_id "
+
"left join fc_member_film mf on mf.id = r.film_id"
;
SqlWhere
where
=
new
SqlWhere
().
eq
(
"t.username"
,
username
).
eq
(
"t.enroll_type_id"
,
enroll_type_id
).
eq
(
"t.review_state"
,
review_state
);
sql
=
"select t.* from ("
+
sql
+
") t"
+
StringUtil
.
join
(
" and "
,
" where "
,
""
,
""
,
where
.
getStringList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
());
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
8e4b0dc1
...
...
@@ -335,11 +335,11 @@ public class AdminReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"index"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"limit"
),
})
public
Object
getReviewRecordList2
(
Long
index
,
Long
limit
)
{
public
Object
getReviewRecordList2
(
String
username
,
Integer
enroll_type_id
,
Integer
review_state
,
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
.
queryReviewRecordLogList
(
page
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryReviewRecordLogList
(
username
,
enroll_type_id
,
review_state
,
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