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
a5761f39
Commit
a5761f39
authored
Dec 17, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
1458ddf9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
6 deletions
+41
-6
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+5
-0
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+30
-4
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+6
-2
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
a5761f39
...
...
@@ -107,6 +107,11 @@ public interface FilmService {
Integer
enroll_type
,
String
film_country
,
Integer
film_type_short
,
String
play_shanghai
,
Integer
review_round
,
Integer
review_state
,
Integer
allot_atate
,
Integer
r_state
,
Page
page
);
Integer
pass
(
Long
member_film_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
a5761f39
...
...
@@ -404,16 +404,23 @@ public class FilmServiceImpl implements FilmService {
Integer
enroll_type
,
String
film_country
,
Integer
film_type_short
,
String
play_shanghai
,
Integer
review_round
,
Integer
review_state
,
Integer
allot_atate
,
Integer
r_state
,
Page
page
)
{
SqlWhere
where
=
new
SqlWhere
()
SqlWhere
where
1
=
new
SqlWhere
()
.
eq
(
"mf.state"
,
state
)
.
eq
(
"mf.apply_state"
,
apply_state
)
.
eq
(
"mf.upload_state"
,
upload_state
)
.
eq
(
"mf.film_type_name"
,
film_type
)
.
eq
(
"mf.film_type_name_short"
,
film_type_short
)
.
eq
(
"mf.film_country"
,
film_country
)
.
eq
(
"mf.play_shanghai"
,
play_shanghai
)
.
lk
(
"mf.enroll_type_name"
,
enroll_type
)
.
lk
(
new
String
[]{
"mf.en_name"
,
"mf.cn_name"
,
"fp.playactor_name"
},
keyword
);
String
sql
=
""
+
"select "
+
"mf.id, "
...
...
@@ -442,7 +449,7 @@ public class FilmServiceImpl implements FilmService {
+
"where "
+
"mf.id = fp.film_id "
+
"and fp.playactor_type = 'director' "
+
StringUtil
.
join
(
" and "
,
" and "
,
" "
,
" "
,
where
.
getStringList
())
+
StringUtil
.
join
(
" and "
,
" and "
,
" "
,
" "
,
where
1
.
getStringList
())
+
"group by "
+
"mf.id, "
+
"mf.film_no, "
...
...
@@ -464,8 +471,27 @@ public class FilmServiceImpl implements FilmService {
+
"r.allot_state, "
+
"r.state "
+
"order by mf.film_no"
;
Object
[]
objs
=
where
.
getObjectList
();
return
jdbcTemplate
.
limit
(
sql
,
page
,
objs
);
List
<
Object
>
objs
=
new
ArrayList
<
Object
>();
Object
[]
ary1
=
where1
.
getObjectList
();
for
(
Object
obj
:
ary1
)
{
objs
.
add
(
obj
);
}
SqlWhere
where2
=
new
SqlWhere
()
.
eq
(
"t.review_round"
,
review_round
)
.
eq
(
"t.review_state"
,
review_state
)
.
eq
(
"t.allot_atate"
,
allot_atate
)
.
eq
(
"t.state"
,
r_state
)
;
sql
=
"select t.* from ("
+
sql
+
") t"
+
StringUtil
.
join
(
" and "
,
" and "
,
" "
,
" "
,
where2
.
getStringList
());
Object
[]
ary2
=
where2
.
getObjectList
();
for
(
Object
obj
:
ary2
)
{
objs
.
add
(
obj
);
}
return
jdbcTemplate
.
limit
(
sql
,
page
,
objs
.
toArray
());
}
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
a5761f39
...
...
@@ -74,7 +74,7 @@ public class AdminFirstController {
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
memberFilmService
.
queryChuShenList
(
keyword
,
state
,
apply_state
,
null
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
memberFilmService
.
queryChuShenList
(
keyword
,
state
,
apply_state
,
null
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
null
,
null
,
null
,
null
,
null
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
...
...
@@ -117,7 +117,11 @@ public class AdminFirstController {
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
memberFilmService
.
queryChuShenList
(
keyword
,
2
,
2
,
upload_state
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
memberFilmService
.
queryChuShenList
(
keyword
,
2
,
2
,
upload_state
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
play_shanghai
,
review_round
,
review_state
,
allot_atate
,
r_state
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
...
...
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