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
01183915
Commit
01183915
authored
Dec 11, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
881e39f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+2
-3
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
01183915
...
@@ -367,7 +367,7 @@ public class FilmServiceImpl implements FilmService {
...
@@ -367,7 +367,7 @@ public class FilmServiceImpl implements FilmService {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
Integer
apply_state
,
Integer
upload_state
,
Integer
film_type
,
Integer
enroll_type
,
String
film_country
,
Integer
film_type_short
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
Integer
apply_state
,
Integer
upload_state
,
Integer
film_type
,
Integer
enroll_type
,
String
film_country
,
Integer
film_type_short
,
Page
page
)
{
SqlWhere
where
=
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
(
"r.enroll_type_id
"
,
enroll_type
).
lk
(
new
String
[]{
"mf.en_name"
,
"mf.cn_name"
,
"fp.playactor_name"
},
keyword
);
SqlWhere
where
=
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
).
lk
(
"mf.enroll_type_name
"
,
enroll_type
).
lk
(
new
String
[]{
"mf.en_name"
,
"mf.cn_name"
,
"fp.playactor_name"
},
keyword
);
String
sql
=
""
String
sql
=
""
+
"select "
+
"select "
+
"mf.id, "
+
"mf.id, "
...
@@ -387,9 +387,8 @@ public class FilmServiceImpl implements FilmService {
...
@@ -387,9 +387,8 @@ public class FilmServiceImpl implements FilmService {
+
"mf.enroll_type_name, "
+
"mf.enroll_type_name, "
+
"group_concat(fp.playactor_name) director_name "
+
"group_concat(fp.playactor_name) director_name "
+
"from "
+
"from "
+
"fc_member_film mf, fc_
review r, fc_
member_film_playactor fp "
+
"fc_member_film mf, fc_member_film_playactor fp "
+
"where "
+
"where "
+
"mf.id = r.film_id "
+
"and mf.id = fp.film_id "
+
"and mf.id = fp.film_id "
+
"and fp.playactor_type = 'director' "
+
"and fp.playactor_type = 'director' "
+
StringUtil
.
join
(
" and "
,
" and "
,
" "
,
" "
,
where
.
getStringList
())
+
StringUtil
.
join
(
" and "
,
" and "
,
" "
,
" "
,
where
.
getStringList
())
...
...
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