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
f0a56008
Commit
f0a56008
authored
Feb 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
5e377442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+9
-14
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
f0a56008
...
@@ -403,7 +403,7 @@ public class FilmServiceImpl implements FilmService {
...
@@ -403,7 +403,7 @@ public class FilmServiceImpl implements FilmService {
Integer
opt_state
,
Integer
opt_state
,
Integer
[]
film_type_id
,
Integer
[]
film_type_id
,
Page
page
)
{
Page
page
)
{
SqlWhere
where
1
=
new
SqlWhere
()
SqlWhere
where
=
new
SqlWhere
()
.
where
(
"mf.film_type_name = agf.film_type_id and agf.group_id = ?"
,
admin_group_id
)
.
where
(
"mf.film_type_name = agf.film_type_id and agf.group_id = ?"
,
admin_group_id
)
.
eq
(
"mf.state"
,
state
)
.
eq
(
"mf.state"
,
state
)
.
eq
(
"mf.apply_state"
,
apply_state
)
.
eq
(
"mf.apply_state"
,
apply_state
)
...
@@ -414,6 +414,11 @@ public class FilmServiceImpl implements FilmService {
...
@@ -414,6 +414,11 @@ 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
))
{
...
@@ -434,19 +439,9 @@ public class FilmServiceImpl implements FilmService {
...
@@ -434,19 +439,9 @@ public class FilmServiceImpl implements FilmService {
+
"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_admin_group_filmtype agf"
+
", fc_review r, fc_admin_group_filmtype agf"
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
where1
.
getStringList
());
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
where
.
getStringList
());
List
<
Object
>
objs
=
new
ArrayList
<
Object
>();
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
());
objs
.
addAll
(
where1
.
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