Commit 93a335fb authored by Quxl's avatar Quxl

x

parent 1e3f7573
...@@ -494,7 +494,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -494,7 +494,6 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void allot(Integer review_id, Integer review_round, Integer[] user_id) { public void allot(Integer review_id, Integer review_round, Integer[] user_id) {
//jdbcTemplate.executeUpdate("update fc_review_record set review_state = ? where review_id = ? and review_round = ?", 1, review_id, review_round);
if(user_id != null && user_id.length > 0) { if(user_id != null && user_id.length > 0) {
for(Integer i : user_id) { for(Integer i : user_id) {
String sql = "insert into fc_review_record(review_id, user_id, view_state, review_round, review_state, create_time) select ?, ?, ?, ?, ?, ? from dual where not exists (select * form fc_review_record where review_id = ? and user_id = ? and review_round = ?)"; String sql = "insert into fc_review_record(review_id, user_id, view_state, review_round, review_state, create_time) select ?, ?, ?, ?, ?, ? from dual where not exists (select * form fc_review_record where review_id = ? and user_id = ? and review_round = ?)";
......
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