Commit bb5957ce authored by Quxl's avatar Quxl

x

parent 3ce78ae0
......@@ -437,6 +437,10 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Transactional
public void saveReviewRecordIfNotExists(Integer review_id, Integer review_round, Integer[] user_id) {
Integer count = jdbcTemplate.queryForInt("select count(*) from fc_review_record where review_id = ? and review_round = ?", review_id, review_round);
if(count + user_id.length < 2) {
throw new XRException("请至少分配两个审片评委");
}
String sql = ""
+ "insert into fc_review_record"
+ "(review_id, user_id, review_round, create_time) select ?, ?, ?, now() from dual "
......
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