Commit e17764e9 authored by Quxl's avatar Quxl

x

parent 735a65bc
...@@ -515,7 +515,8 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -515,7 +515,8 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.batchUpdate("update fc_review_record set user_group_id = ? where review_id = ? and review_round = ? and user_id = ?", objs2); jdbcTemplate.batchUpdate("update fc_review_record set user_group_id = ? where review_id = ? and review_round = ? and user_id = ?", objs2);
jdbcTemplate.executeUpdate("update fc_review set allot_state = 1, opt_state = 0 where id = ? and review_round = ?", review_id, review_round); jdbcTemplate.executeUpdate("update fc_review set allot_state = 1, opt_state = 0 where id = ? and review_round = ?", review_id, review_round);
String sql0 = "select count(rr.user_group_id) from fc_review_record rr, fc_review r where rr.review_id = r.id and r.enroll_type_id = 2 and rr.review_id = ? and rr.review_round = ? and rr.review_round in (2,3) group by rr.user_group_id"; String sql0 = "select rr.user_group_id from fc_review_record rr, fc_review r where rr.review_id = r.id and r.enroll_type_id = 2 and rr.review_id = ? and rr.review_round = ? and rr.review_round in (2,3) group by rr.user_group_id";
sql0 = "select count(t.user_group_id) from (" + sql0 + ") t";
Integer groupCount = jdbcTemplate.queryForInt(sql0, review_id, review_round); Integer groupCount = jdbcTemplate.queryForInt(sql0, review_id, review_round);
if(groupCount > 1) { if(groupCount > 1) {
throw new XRException("亚新二选或三选只能分配一组评委"); throw new XRException("亚新二选或三选只能分配一组评委");
......
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