Commit 3e1e1e32 authored by Quxl's avatar Quxl

x

parent b67eb21e
......@@ -417,8 +417,15 @@ public class FilmServiceImpl implements FilmService {
.eq("mf.film_type_name_short", film_type_short)
.eq("mf.film_country", film_country)
.eq("mf.play_shanghai", play_shanghai)
.lk(new String[]{"mf.en_name", "mf.cn_name", "fp.playactor_name"}, keyword);
;
if(StringUtil.isNotBlank(keyword)) {
String lkstr = "%" + keyword + "%";
if(keyword.matches("\\d+")) {
where1.where("(mf.film_no = ? or mf.en_name like ? or mf.cn_name like ? or fp.playactor_name like ?)", new Object[] {Integer.valueOf(keyword), lkstr, lkstr, lkstr});
} else {
where1.lk(new String[]{"mf.en_name", "mf.cn_name", "fp.playactor_name"}, keyword);
}
}
String sql_film = "fc_member_film";
if(StringUtil.isNotBlank(enroll_type_id)) {
sql_film = "(select mf0.* from fc_member_film mf0, fc_member_film_enroll mfe where mf0.id = mfe.film_id and mfe.enroll_type_id = " + enroll_type_id + ")";
......
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