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
26e6a63a
Commit
26e6a63a
authored
Dec 08, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2e792b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+4
-2
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
26e6a63a
...
...
@@ -27,7 +27,8 @@ public class ReviewServiceImpl implements ReviewService {
@Override
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
)
{
SqlWhere
where
=
new
SqlWhere
().
eq
(
"r.enroll_type_id"
,
enroll_type_id
).
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
);
List
<
Integer
>
ids
=
jdbcTemplate
.
queryForObjects
(
"select ugf.fun_id from fc_user_group_fun ugf, fc_user u where ugf.group_id = u.group_id"
,
Integer
.
class
,
user_id
);
SqlWhere
where
=
new
SqlWhere
().
in
(
"r.review_round"
,
ids
.
toArray
()).
eq
(
"r.enroll_type_id"
,
enroll_type_id
).
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
);
if
(
is_review
)
{
where
.
ge
(
"r.review_state"
,
2
);
}
else
{
...
...
@@ -56,7 +57,8 @@ public class ReviewServiceImpl implements ReviewService {
+
"where "
+
" mf.id = r.film_id "
+
"and r.id = rr.review_id "
+
"and r.review_round = rr.review_round"
+
"and r.review_round = rr.review_round "
+
"and r.review_round in ()"
+
"and rr.user_id = "
+
user_id
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
where
.
getStringList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectList
());
...
...
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