Commit 2b803b7d authored by Quxl's avatar Quxl

x

parent 19d62cda
...@@ -478,8 +478,8 @@ public class FilmServiceImpl implements FilmService { ...@@ -478,8 +478,8 @@ public class FilmServiceImpl implements FilmService {
nextRound = round + 1; nextRound = round + 1;
} }
jdbcTemplate.executeUpdate("update fc_member_film set review_round = ? where id = ?", nextRound, member_film_id); jdbcTemplate.executeUpdate("update fc_member_film set review_round = ? where id = ?", nextRound, member_film_id);
List<Fc_review> reviews = jdbcTemplate.queryForBeans("select * from fc_review where film_id = ? and review_round = ?", Fc_review.class, member_film_id, nextRound); Integer count = jdbcTemplate.queryForInt("select count(id) from fc_review film_id = ? and review_round = ?", member_film_id, nextRound);
if(reviews == null || reviews.size() ==0) { if(count == 0) {
Fc_review review = new Fc_review(); Fc_review review = new Fc_review();
review.setFilm_id(member_film_id.intValue()); review.setFilm_id(member_film_id.intValue());
review.setReview_round(nextRound); review.setReview_round(nextRound);
......
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