Commit 5b285f27 authored by Quxl's avatar Quxl

x

parent ae300c4a
...@@ -369,7 +369,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -369,7 +369,7 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.executeUpdate("update fc_review set review_round = ?, opt_state = 0, allot_state = ?, review_state = null, push_time = now() where id = ?", review_round, allot_state, review_id); jdbcTemplate.executeUpdate("update fc_review set review_round = ?, opt_state = 0, allot_state = ?, review_state = null, push_time = now() where id = ?", review_round, allot_state, review_id);
} }
private Integer reviewStateElection(List<Fc_review_record> records) { private Integer toReviewState(List<Fc_review_record> records) {
Map<Integer, Integer> map = new HashMap<Integer, Integer>(); Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for(Fc_review_record record : records) { for(Fc_review_record record : records) {
Integer review_state = record.getReview_state();; Integer review_state = record.getReview_state();;
...@@ -414,7 +414,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -414,7 +414,7 @@ public class ReviewServiceImpl implements ReviewService {
List<Fc_review_record> records = jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ? and review_round = ?", Fc_review_record.class, review.getId(), review.getReview_round()); List<Fc_review_record> records = jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ? and review_round = ?", Fc_review_record.class, review.getId(), review.getReview_round());
Integer review_round = review.getReview_round(); Integer review_round = review.getReview_round();
Integer enroll_type_id = review.getEnroll_type_id(); Integer enroll_type_id = review.getEnroll_type_id();
Integer review_state = this.reviewStateElection(records); Integer review_state = this.toReviewState(records);
if(review_state == null) {//未完 if(review_state == null) {//未完
return; return;
} }
......
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