Commit 3c700d74 authored by Quxl's avatar Quxl

x

parent 7b1cae75
......@@ -342,8 +342,8 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.save(review);
}
private Integer queryUserCount(Integer review_id, Integer review_round) {
return jdbcTemplate.queryForInt("select count(*) from fc_review_round where review_id = ? and review_round = ?", review_id, review_round);
private Integer queryRoundReviewCount(Integer review_id, Integer review_round) {
return jdbcTemplate.queryForInt("select count(*) from fc_review_history where review_id = ? and review_round = ?", review_id, review_round);
}
@Override
......@@ -378,7 +378,7 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.save(history);
if(review_state.intValue() == -1) {//争议
if(enroll_type_id.intValue() == 4 && review_round.intValue() == 4 && this.queryUserCount(review.getId(), review_round) >= 4) {
if(enroll_type_id.intValue() == 4 && review_round.intValue() == 4 && this.queryRoundReviewCount(review.getId(), review_round) >= 2) {//展映把关已经产生两次争议,需要审片委员会介入
this.toNextRound(review.getId());
} else if(enroll_type_id.intValue() == 4 && review_round.intValue() == 5) {
throw new XRException("展映影片把关存争议,选片委员会介入后不允许产生有争议结论");
......
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