Commit 01183915 authored by Quxl's avatar Quxl

x

parent 881e39f1
...@@ -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())
......
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