Commit 3713982e authored by Quxl's avatar Quxl

x

parent f7b35df0
...@@ -501,7 +501,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -501,7 +501,7 @@ public class FilmServiceImpl implements FilmService {
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 " + review_id + ", " + i + ", 0, " + review_round + ", 1, now() from dual where not exists (select * from fc_review_record where review_id = " + review_id + " and user_id = " + i + " and review_round = " + review_round + ")"; String sql = "insert into fc_review_record(review_id, user_id, view_state, review_round, review_state, create_time) select " + review_id + ", " + i + ", 0, " + review_round + ", 1, now() from dual where not exists (select * from fc_review_record where review_id = " + review_id + " and user_id = " + i + " and review_round = " + review_round + ")";
jdbcTemplate.executeUpdate(sql, review_id, i, 0, review_round, 1, new Date(), review_id, i, review_round); jdbcTemplate.executeUpdate(sql);
} }
} }
} }
......
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