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
812dab18
Commit
812dab18
authored
Feb 20, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
060255ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+13
-7
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
812dab18
...
@@ -414,11 +414,6 @@ public class FilmServiceImpl implements FilmService {
...
@@ -414,11 +414,6 @@ public class FilmServiceImpl implements FilmService {
.
eq
(
"mf.play_shanghai"
,
play_shanghai
)
.
eq
(
"mf.play_shanghai"
,
play_shanghai
)
.
in
(
"mf.film_type_id"
,
film_type_id
)
.
in
(
"mf.film_type_id"
,
film_type_id
)
.
lk
(
"mf.keywords"
,
keyword
)
.
lk
(
"mf.keywords"
,
keyword
)
.
where
(
"r.film_id = mf.id"
)
.
eq
(
"r.review_round"
,
review_round
)
.
eq
(
"r.review_state"
,
review_state
)
.
eq
(
"r.allot_atate"
,
allot_atate
)
.
eq
(
"r.opt_state"
,
opt_state
)
;
;
String
sql_film
=
"fc_member_film"
;
String
sql_film
=
"fc_member_film"
;
if
(
StringUtil
.
isNotBlank
(
enroll_type_id
))
{
if
(
StringUtil
.
isNotBlank
(
enroll_type_id
))
{
...
@@ -435,12 +430,23 @@ public class FilmServiceImpl implements FilmService {
...
@@ -435,12 +430,23 @@ public class FilmServiceImpl implements FilmService {
+
"m.username member_name, "
+
"m.username member_name, "
+
"a.realname admin_name "
+
"a.realname admin_name "
+
"from "
+
sql_film
+
" mf "
+
"from "
+
sql_film
+
" mf "
+
"left join fc_review r on r.film_id = mf.id "
+
"left join fc_film_group fg on fg.id = mf.film_group_id "
+
"left join fc_film_group fg on fg.id = mf.film_group_id "
+
"left join fc_member m on m.id = mf.member_id "
+
"left join fc_member m on m.id = mf.member_id "
+
"left join fc_admin a on a.adminid = mf.admin_creator"
+
"left join fc_admin a on a.adminid = mf.admin_creator"
+
", fc_
review r, fc_
admin_group_filmtype agf"
+
", fc_admin_group_filmtype agf"
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
where
.
getStringList
());
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
where
.
getStringList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
());
List
<
Object
>
objs
=
new
ArrayList
<
Object
>();
objs
.
addAll
(
where
.
getObjectList
());
SqlWhere
where2
=
new
SqlWhere
()
.
eq
(
"t.review_round"
,
review_round
)
.
eq
(
"t.review_state"
,
review_state
)
.
eq
(
"t.allot_atate"
,
allot_atate
)
.
eq
(
"t.opt_state"
,
opt_state
)
;
sql
=
"select t.* from ("
+
sql
+
") t"
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
where2
.
getStringList
())
+
" order by t.id desc"
;
objs
.
addAll
(
where2
.
getObjectList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
objs
.
toArray
());
}
}
@Override
@Override
...
...
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