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
1b22d326
Commit
1b22d326
authored
Dec 12, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
76fba1cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+42
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
1b22d326
...
...
@@ -555,7 +555,48 @@ public class FilmServiceImpl implements FilmService {
.
eq
(
"r.review_state"
,
review_state
)
.
eq
(
"r.allot_state"
,
allot_state
)
.
eq
(
"r.state"
,
state
);
String
sql
=
"select mf.id, mf.film_no, r.id review_id, r.review_round, r.review_state, r.allot_state, r.enroll_type_id, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf, fc_review r where r.film_id = mf.id"
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
w1
.
getStringList
());
//String sql = "select mf.id, mf.film_no, r.id review_id, r.review_round, r.review_state, r.allot_state, r.enroll_type_id, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf, fc_review r where r.film_id = mf.id" + StringUtil.join(" and ", " and ", "", "", w1.getStringList());
String
sql
=
""
+
"select "
+
"mf.id, "
+
"mf.film_no, "
+
"mf.origion_name, "
+
"mf.en_name, "
+
"mf.cn_name, "
+
"mf.film_type_name, "
+
"mf.film_country, "
+
"r.id review_id, "
+
"r.review_round, "
+
"r.review_state, "
+
"r.allot_state,"
+
"r.enroll_type_id, "
+
"group_concat(fp.playactor_name) director_name, "
+
"count(rr.id) user_count "
+
"from "
+
"fc_member_film mf, fc_review r, fc_review_record rr, fc_member_film_playactor fp "
+
"where "
+
"mf.id = r.film_id "
+
"and r.id = rr.review_id "
+
"and r.review_round = rr.review_round "
+
"and mf.id = fp.film_id "
+
"and fp.playactor_type = 'director' "
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
w1
.
getStringList
())
+
"group by "
+
"mf.id, "
+
"mf.film_no, "
+
"mf.origion_name, "
+
"mf.en_name, "
+
"mf.cn_name, "
+
"mf.film_type_name, "
+
"mf.film_country, "
+
"r.id, "
+
"r.review_round, "
+
"r.review_state, "
+
"r.allot_state,"
+
"r.enroll_type_id "
;
return
jdbcTemplate
.
limit
(
sql
,
page
,
w1
.
getObjectList
());
}
...
...
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