Commit f318c6f7 authored by Quxl's avatar Quxl

x

parent e6bd5096
......@@ -31,7 +31,27 @@ public class UserReviewServiceImpl implements UserReviewService {
if(push_date != null) {
where.ge("r.create_time", DateUtil.start(push_date)).lt("r.create_time", DateUtil.end(push_date));
}
String sql = "select mf.*, r.enroll_type_id, r.review_round, r.create_time push_time from fc_member_film mf, fc_review r, fc_review_user ru where mf.id = r.film_id and r.id = ru.review_id and ru.user_id = " + user_id + StringUtil.join(" and ", " and ", "", "", where.getStringList());
String sql = ""
+ "select "
+ "mf.*, "
+ "r.enroll_type_id, "
+ "r.review_round, "
+ "r.create_time push_time, "
+ "ru.view_state, "
+ "ru.review_state, "
+ "ru.review_score, "
+ "ru.retiew_text, "
+ "ru.retiew_text_summary, "
+ "ru.review_text_theme, "
+ "ru.review_text_style, "
+ "ru.review_text_keynote "
+ "from "
+ "fc_member_film mf, fc_review r, fc_review_user ru "
+ "where "
+ "mf.id = r.film_id "
+ "and r.id = ru.review_id "
+ "and ru.user_id = " + user_id
+ StringUtil.join(" and ", " and ", "", "", where.getStringList());
return jdbcTemplate.limit(sql, page, where.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