Commit 32abe2a1 authored by Quxl's avatar Quxl

x

parent 1c836c75
...@@ -439,7 +439,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -439,7 +439,6 @@ public class FilmServiceImpl implements FilmService {
Fc_member_film_enroll enroll = new Fc_member_film_enroll(); Fc_member_film_enroll enroll = new Fc_member_film_enroll();
enroll.setEnroll_type_id(Integer.valueOf(str)); enroll.setEnroll_type_id(Integer.valueOf(str));
enroll.setFilm_id(member_film_id.intValue()); enroll.setFilm_id(member_film_id.intValue());
enroll.setReview_round(0);
enrolls.add(enroll); enrolls.add(enroll);
} }
} }
...@@ -458,8 +457,8 @@ public class FilmServiceImpl implements FilmService { ...@@ -458,8 +457,8 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void toNextRound(Long member_film_id, Integer enroll_type_id) { public void toNextRound(Long member_film_id, Integer enroll_type_id) {
Fc_member_film_enroll enroll = this.jdbcTemplate.queryForBean("select * from fc_member_film_enroll where film_id = ? and enroll_type_id = ?", Fc_member_film_enroll.class, member_film_id, enroll_type_id); Fc_review reviewTmp = jdbcTemplate.queryForBean("select * from fc_review where film_id = ? and enroll_type_id = ?", Fc_review.class, member_film_id, enroll_type_id);
Integer round = enroll.getReview_round(); Integer round = reviewTmp.getReview_round();
Integer nextRound = null; Integer nextRound = null;
if(round == null || round == 0) { if(round == null || round == 0) {
nextRound = 1; nextRound = 1;
......
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