Commit f3373759 authored by Quxl's avatar Quxl

x

parent 9d0e26c2
...@@ -311,7 +311,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -311,7 +311,7 @@ public class ReviewServiceImpl implements ReviewService {
public void toRound(Integer review_id, Integer review_round) { public void toRound(Integer review_id, Integer review_round) {
Integer count = jdbcTemplate.queryForInt("select count(rr.id) from fc_review_record rr, fc_review r where rr.review_id = r.id and rr.review_round = ? and r.id = ?", review_round, review_id); Integer count = jdbcTemplate.queryForInt("select count(rr.id) from fc_review_record rr, fc_review r where rr.review_id = r.id and rr.review_round = ? and r.id = ?", review_round, review_id);
Integer allot_state = count > 0 ? 1 : 0; Integer allot_state = count > 0 ? 1 : 0;
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 = 0, push_time = now() where id = ?", review_round, allot_state, review_id);
} }
private int toReviewState(List<Fc_review_record> records) { private int toReviewState(List<Fc_review_record> records) {
......
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