Commit 04f92e2e authored by Quxl's avatar Quxl

x

parent d39f6c8c
...@@ -683,7 +683,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -683,7 +683,7 @@ public class ReviewServiceImpl implements ReviewService {
@Override @Override
public Integer queryReviewRound(int film_id) { public Integer queryReviewRound(int film_id) {
List<Fc_review> reviewList = jdbcTemplate.queryForBeans("select * from fc_review where film_id = ? order by review_time desc limit 1, 1", Fc_review.class, film_id); List<Fc_review> reviewList = jdbcTemplate.queryForBeans("select * from fc_review where film_id = ? order by review_time desc limit 1", Fc_review.class, film_id);
if(reviewList != null && reviewList.size() == 1) { if(reviewList != null && reviewList.size() == 1) {
return reviewList.get(0).getReview_round(); return reviewList.get(0).getReview_round();
} }
......
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