Commit 36a4bcb9 authored by Quxl's avatar Quxl

x

parent 9c8fb07c
......@@ -390,44 +390,45 @@ public class ReviewServiceImpl implements ReviewService {
this.createAsiaNewReport(review.getId().intValue(), reviewRound);
}
if(reviewState == 0) {
return;
}
if(reviewState == 2) {//否决
jdbcTemplate.executeUpdate("update fc_review set opt_state = 3, review_state = 2 where id = ?", review.getId());
} else if(reviewState == -1) {//争议
jdbcTemplate.executeUpdate("update fc_review set opt_state = 1, allot_state = 0 where id = ?", review.getId());
jdbcTemplate.executeUpdate("update fc_review set opt_state = 0, review_state = 0 where id = ?", review.getId());
} else {
jdbcTemplate.executeUpdate("update fc_review set opt_state = 2, review_state = ? where id = ?", reviewState, review.getId());
if(enrollType == 1) {
if(reviewRound == 6 && reviewState == 1) {
this.closeFlow(reviewState, review.getId());
} else if(reviewRound == 5 && reviewState == 5) {
this.toType4(review.getId());
this.closeFlow(1, review.getId());
}
} else if(enrollType == 2) {
if(reviewRound == 6 && reviewState == 1) {
this.closeFlow(reviewState, review.getId());
} else if(reviewRound == 5 && reviewState == 5) {
this.toType4(review.getId());
this.closeFlow(1, review.getId());
}
} else if(enrollType == 4) {
if((reviewRound == 4 || reviewRound == 5) && (reviewState == 1 || reviewState == 5)) {
this.closeFlow(1, review.getId());
if(reviewState == 2) {//否决
jdbcTemplate.executeUpdate("update fc_review set opt_state = 3, review_state = 2 where id = ?", review.getId());
} else if(reviewState == -1) {//争议
jdbcTemplate.executeUpdate("update fc_review set opt_state = 1, allot_state = 0 where id = ?", review.getId());
} else {
jdbcTemplate.executeUpdate("update fc_review set opt_state = 2, review_state = ? where id = ?", reviewState, review.getId());
if(enrollType == 1) {
if(reviewRound == 6 && reviewState == 1) {
this.closeFlow(reviewState, review.getId());
} else if(reviewRound == 5 && reviewState == 5) {
this.toType4(review.getId());
this.closeFlow(1, review.getId());
}
} else if(enrollType == 2) {
if(reviewRound == 6 && reviewState == 1) {
this.closeFlow(reviewState, review.getId());
} else if(reviewRound == 5 && reviewState == 5) {
this.toType4(review.getId());
this.closeFlow(1, review.getId());
}
} else if(enrollType == 4) {
if((reviewRound == 4 || reviewRound == 5) && (reviewState == 1 || reviewState == 5)) {
this.closeFlow(1, review.getId());
}
}
}
Integer opt_state = jdbcTemplate.queryForInt("select opt_state from fc_review where id = ?", review.getId());
Fc_review_history history = new Fc_review_history();
history.setReview_id(review.getId());
history.setEnroll_type_id(enrollType);
history.setFilm_id(review.getFilm_id());
history.setReview_round(reviewRound);
history.setReview_state(reviewState);
history.setCreate_time(new Date());
history.setOpt_state(opt_state);
jdbcTemplate.save(history);
}
Integer opt_state = jdbcTemplate.queryForInt("select opt_state from fc_review where id = ?", review.getId());
Fc_review_history history = new Fc_review_history();
history.setReview_id(review.getId());
history.setEnroll_type_id(enrollType);
history.setFilm_id(review.getFilm_id());
history.setReview_round(reviewRound);
history.setReview_state(reviewState);
history.setCreate_time(new Date());
history.setOpt_state(opt_state);
jdbcTemplate.save(history);
}
@Override
......
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