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
74813a94
Commit
74813a94
authored
Dec 12, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
485785ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+9
-5
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
74813a94
...
...
@@ -28,14 +28,18 @@ public class ReviewServiceImpl implements ReviewService {
@Override
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
start_date
,
Date
end_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
)
{
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 and u.uid = ?"
,
Integer
.
class
,
user_id
);
SqlWhere
where
=
new
SqlWhere
().
ge
(
"r.push_time"
,
start_date
).
lt
(
"r.push_time"
,
end_date
==
null
?
null
:
DateUtil
.
end
(
end_date
)).
in
(
"r.review_round"
,
ids
.
toArray
()).
eq
(
"r.enroll_type_id"
,
enroll_type_id
).
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
);
SqlWhere
where
=
new
SqlWhere
()
.
ge
(
"r.push_time"
,
start_date
)
.
lt
(
"r.push_time"
,
end_date
==
null
?
null
:
DateUtil
.
end
(
end_date
))
.
eq
(
"r.enroll_type_id"
,
enroll_type_id
)
.
in
(
"r.review_round"
,
ids
.
toArray
())
.
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
)
;
if
(
is_review
)
{
where
.
ge
(
"r.review_state"
,
2
);
where
.
where
(
"r.review_state is not null"
,
null
);
}
else
{
where
.
lt
(
"r.review_state"
,
2
);
where
.
where
(
"r.review_state is null"
,
null
);
}
String
sql
=
""
+
"select "
+
"mf.*, "
...
...
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