Commit fcb5d3a1 authored by Quxl's avatar Quxl

x

parent 0687577e
...@@ -689,7 +689,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -689,7 +689,7 @@ public class ReviewServiceImpl implements ReviewService {
@Override @Override
public List<Map<String, Object>> queryTimeoutList(String keyword, Page page) { public List<Map<String, Object>> queryTimeoutList(String keyword, Page page) {
Date date = DateUtil.day(new Date(), -2); Date date = DateUtil.day(new Date(), -2);
String sql = "select rr.*, u.username, mf.en_name, mf.cn_name from fc_review_record rr left join fc_user u on u.uid = rr.user_id left join fc_review r on r.id = rr.review_id left join fc_member_film mf on mf.id = r.film_id where rr.review_time is null and rr.create_time < ?"; String sql = "select rr.*, u.username, mf.en_name, mf.cn_name from fc_review_record rr left join fc_user u on u.uid = rr.user_id left join fc_review r on r.id = rr.review_id left join fc_member_film mf on mf.id = r.film_id where rr.review_state is null and rr.create_time < ?";
if(StringUtil.isNotBlank(keyword)) { if(StringUtil.isNotBlank(keyword)) {
sql = "select t.* from (" + sql + ") t where t.username like ? or t.en_name like ? or t.cn_name like ?"; sql = "select t.* from (" + sql + ") t where t.username like ? or t.en_name like ? or t.cn_name like ?";
String likestr = "%" + keyword + "%"; String likestr = "%" + keyword + "%";
......
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