Commit 96badd24 authored by Quxl's avatar Quxl

x

parent 87cefd5d
......@@ -479,7 +479,7 @@ public class FilmServiceImpl implements FilmService {
nextRound = round + 1;
}
jdbcTemplate.executeUpdate("update fc_member_film set review_round = ? where id = ?", nextRound, member_film_id);
Integer count = jdbcTemplate.queryForInt("select count(id) from fc_review film_id = ? and review_round = ?", member_film_id, nextRound);
Integer count = jdbcTemplate.queryForInt("select count(id) from fc_review where film_id = ? and review_round = ?", member_film_id, nextRound);
if(count == 0) {
Fc_review review = new Fc_review();
review.setFilm_id(member_film_id.intValue());
......
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