Commit c5d561d5 authored by Quxl's avatar Quxl

z

parent 65f3ef4c
......@@ -46,7 +46,12 @@ public class FilmGroupServiceImpl implements FilmGroupService {
if(enroll_type_id != null) {
table = "(select mf.* from fc_member_film mf, fc_member_film_enroll mfe where mf.id = mfe.film_id and mfe.enroll_type_id = " + enroll_type_id + ")";
}
String sql = "select t.* from " + table + " t" + (StringUtil.isNotBlank(film_country) ? ("t.film_country = '" + film_country + "'") : "");
String sql = ""
+ "select "
+ "t.*, "
+ "(select group_concat(t.playactor_name) from fc_member_film_playactor fp where fp.film_id = t.id and fp.playactor_type = 'director') director_name "
+ "from "
+ "" + table + " t " + (StringUtil.isNotBlank(film_country) ? ("t.film_country = '" + film_country + "'") : "");
return jdbcTemplate.limit(sql, page);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment