Commit 382a0b64 authored by Quxl's avatar Quxl

x

parent d30263d6
...@@ -40,7 +40,8 @@ public class VoteServiceImpl implements VoteService { ...@@ -40,7 +40,8 @@ public class VoteServiceImpl implements VoteService {
@Transactional @Transactional
public void toNextRound(Integer review_id) { public void toNextRound(Integer review_id) {
Integer count = jdbcTemplate.queryForInt("select count(*) from fc_review_record where review_id = ?", review_id); Integer count = jdbcTemplate.queryForInt("select count(*) from fc_review_record where review_id = ?", review_id);
jdbcTemplate.executeUpdate("update fc_review set review_round = review_round + 1, review_state = ?, push_time = ? where id = ?", count > 0 ? 1 : 0, new Date(), review_id); Integer allot_state = count > 0 ? 1 : 0;
jdbcTemplate.executeUpdate("update fc_review set review_round = review_round + 1, allot_state = ?, dispute_state = ?, review_state = ?, push_time = ? where id = ?", allot_state, 0, null, new Date(), review_id);
} }
private Integer reviewStateElection(List<Fc_review_record> records) { private Integer reviewStateElection(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