Commit 27b9ae42 authored by Quxl's avatar Quxl

x

parent bf442200
......@@ -119,9 +119,9 @@ public class ReviewServiceImpl implements ReviewService {
if(StringUtil.isNotBlank(keyword)) {
String lkstr = "%" + keyword + "%";
if(keyword.matches("\\d+")) {
w2.where("(t.film_no = ? or t.en_name like ? or t.cn_name like ? or t.playactor_name like ?)", new Object[] {Integer.valueOf(keyword), lkstr, lkstr, lkstr});
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ? or t.film_no = ?)", new Object[] {Integer.valueOf(keyword), lkstr, lkstr, lkstr});
} else {
w2.lk(new String[]{"t.en_name", "t.cn_name", "t.playactor_name"}, keyword);
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ?)", new Object[] {lkstr, lkstr, lkstr});
}
sql = "select t.* from (" + sql + ") t" + StringUtil.join(" where ", " and ", " ", " ", w2.getStringList());
w1.getObjectList().addAll(w2.getObjectList());
......
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