Commit 5c0fad2f authored by Quxl's avatar Quxl

x

parent 693b6b1e
......@@ -371,9 +371,11 @@ public class FilmServiceImpl implements FilmService {
String sql = "select mf.*, ifnull(rv.review_state, 0) review_state, (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 left join fc_review rv on rv.film_id = mf.id" + StringUtil.join(" and ", " where ", "", "", where.getStringList());
if(StringUtil.isNotBlank(keyword)) {
sql = "select t.* from (" + sql + ") t where t.director_name like '%" + keyword + "%' or t.en_name like '%" + keyword + "%' or t.cn_name like '%" + keyword + "%'";
page.setLimitKey("t.film_no");
} else {
page.setLimitKey("mf.film_no");
}
Object[] objs = where.getObjectList();
page.setLimitKey("t.film_no");
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