Commit fab9f869 authored by Quxl's avatar Quxl

x

parent cc8f1a0a
......@@ -119,7 +119,7 @@ public class ReviewServiceImpl implements ReviewService {
if(StringUtil.isNotBlank(keyword)) {
String lkstr = "%" + keyword + "%";
if(keyword.matches("\\d+")) {
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});
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ? or t.film_no = ?)", new Object[] {lkstr, lkstr, lkstr, Integer.valueOf(keyword)});
} else {
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ?)", new Object[] {lkstr, lkstr, lkstr});
}
......
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