Commit 0a6d1933 authored by Quxl's avatar Quxl

x

parent 2ddb9225
...@@ -497,8 +497,8 @@ public class MemberServiceImpl implements MemberService { ...@@ -497,8 +497,8 @@ public class MemberServiceImpl implements MemberService {
@Override @Override
public List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, String film_type, String enroll_type, Page page) { public List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, String film_type, String enroll_type, Page page) {
SqlWhere where = new SqlWhere().olike(new String[]{"en_name", "cn_name"}, keyword).eq("state", state).eq("apply_state", apply_state).eq("film_type", film_type).eq("enroll_type", enroll_type); SqlWhere where = new SqlWhere().olike(new String[]{"mf.en_name", "mf.cn_name"}, keyword).eq("mf.state", state).eq("mf.apply_state", apply_state).eq("mf.film_type_name", film_type).eq("mf.enroll_type_name", enroll_type);
String sql = "select * from fc_member_film" + StringUtil.join(" and ", " where ", "", "", where.getStringList()); String sql = "select mf.*, (select GROUP_CONCAT(mfd.director_name) from fc_member_film_director mfd where mfd.film_id = mf.id) director_name from fc_member_film mf" + StringUtil.join(" and ", " where ", "", "", where.getStringList());
Object[] objs = where.getObjectList(); Object[] objs = where.getObjectList();
return jdbcTemplate.limit(sql, page, objs); return jdbcTemplate.limit(sql, page, objs);
} }
......
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