Commit 6f2ff710 authored by Quxl's avatar Quxl

x

parent 3c700d74
......@@ -327,13 +327,13 @@ public class ReviewServiceImpl implements ReviewService {
System.out.println(new ReviewServiceImpl().reviewStateElection(records));
}
private void transfer_4_Flow(Fc_review review) {
private void transfer_4_flow_4(Fc_review review) {
Date now = new Date();
jdbcTemplate.executeUpdate("update fc_review set opt_state = 3, review_state = 2 where id = ?", review.getId());
Fc_review review_new = new Fc_review();
review_new.setFilm_id(review.getFilm_id());
review_new.setEnroll_type_id(4);
review_new.setReview_round(1);
review_new.setReview_round(4);
review_new.setPush_time(now);
review_new.setAllot_state(0);
review_new.setOpt_state(0);
......@@ -342,6 +342,21 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.save(review);
}
private void transfer_4_flow_5(Fc_review review) {
Date now = new Date();
jdbcTemplate.executeUpdate("update fc_review set opt_state = 3, review_state = 2 where id = ?", review.getId());
Fc_review review_new = new Fc_review();
review_new.setFilm_id(review.getFilm_id());
review_new.setEnroll_type_id(4);
review_new.setReview_round(5);
review_new.setPush_time(now);
review_new.setAllot_state(0);
review_new.setOpt_state(3);
review_new.setReview_state(1);
review_new.setCreate_time(now);
jdbcTemplate.save(review);
}
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);
}
......@@ -425,7 +440,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3) {//参赛,等待管理员分配进入下一轮评选
jdbcTemplate.executeUpdate("update fc_review set opt_state = 2, review_state = 3 where id = ?", review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_4(review);
} else {
throw new XRException("亚新第2轮审片结论错误");
}
......@@ -445,7 +460,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3) {//参赛,自动进入下一轮评选
this.toNextRound(review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_5(review);
} else {
throw new XRException("亚新第5轮审片结论错误");
}
......@@ -488,7 +503,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3) {
this.toNextRound(review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_5(review);
} else {
throw new XRException("金爵短片5轮审片结论错误");
}
......@@ -506,7 +521,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3 || review_state.intValue() == 4) {//参赛 //参赛备选
this.toNextRound(review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_4(review);
} else {
throw new XRException("金爵长片2轮审片结论错误");
}
......@@ -514,7 +529,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3) {
this.toNextRound(review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_4(review);
} else {
throw new XRException("金爵长片3轮审片结论错误");
}
......@@ -528,7 +543,7 @@ public class ReviewServiceImpl implements ReviewService {
if(review_state.intValue() == 3) {
this.toNextRound(review.getId());
} else if(review_state.intValue() == 5) {//参展,结束当前流程,启动新参展流程
this.transfer_4_Flow(review);
this.transfer_4_flow_5(review);
} else {
throw new XRException("金爵长片5轮审片结论错误");
}
......
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