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
9759e6cc
Commit
9759e6cc
authored
Jan 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
7d065a5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+4
-11
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
9759e6cc
...
@@ -735,16 +735,9 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -735,16 +735,9 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryExhibitionList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
from_round
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryExhibitionList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
from_round
,
Page
page
)
{
String
sql_film
=
"fc_member_film"
;
if
(
StringUtil
.
isNotBlank
(
enroll_type_id
))
{
sql_film
=
"(select mf0.* from fc_member_film mf0, fc_member_film_enroll mfe where mf0.id = mfe.film_id and mfe.enroll_type_id = "
+
enroll_type_id
+
")"
;
}
else
{
sql_film
=
"(select mf0.* from fc_member_film mf0)"
;
}
String
sql
=
""
String
sql
=
""
+
"select "
+
"select "
+
"r.*, "
+
"r.*, "
+
"mf.id film_id_enroll, "
+
"mf.cn_name, "
+
"mf.cn_name, "
+
"mf.en_name, "
+
"mf.en_name, "
+
"mf.enroll_type_name, "
+
"mf.enroll_type_name, "
...
@@ -757,11 +750,11 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -757,11 +750,11 @@ public class ReviewServiceImpl implements ReviewService {
+
"(select count(fp.id) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director') director_name "
+
"(select count(fp.id) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director') director_name "
+
"from "
+
"from "
+
"fc_review r "
+
"fc_review r "
+
"left join ("
+
sql_film
+
") mf on mf.id = r.film_id "
+
"left join fc_member_film mf on mf.id = r.film_id "
+
"left join fc_review_history rh on rh.enroll_type_id != 4 and rh.review_state = 3 and rh.review_id = r.id "
+
"left join fc_review_history rh on rh.enroll_type_id != 4 and rh.review_state = 3 and rh.review_id = r.id"
+
""
;
+
(
enroll_type_id
==
null
?
""
:
(
", fc_member_film_enroll mfe where mfe.film_id = r.film_id and mfe.enroll_type_id = "
+
enroll_type_id
))
;
SqlWhere
where
=
new
SqlWhere
()
SqlWhere
where
=
new
SqlWhere
()
.
nn
(
"t.film_id_enroll"
)
.
lk
(
new
String
[]
{
"cn_name"
,
"en_name"
,
"director_name"
},
keyword
)
.
lk
(
new
String
[]
{
"cn_name"
,
"en_name"
,
"director_name"
},
keyword
)
.
eq
(
"film_type_name"
,
film_type_name
)
.
eq
(
"film_type_name"
,
film_type_name
)
.
eq
(
"film_type_name_short"
,
film_type_name_short
)
.
eq
(
"film_type_name_short"
,
film_type_name_short
)
...
...
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