@@ -591,7 +592,7 @@ public class FilmServiceImpl implements FilmService {
...
@@ -591,7 +592,7 @@ public class FilmServiceImpl implements FilmService {
publicvoidexchangeFilmNo(Integerid1,Integerid2){
publicvoidexchangeFilmNo(Integerid1,Integerid2){
Fc_member_filmf1=jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?",Fc_member_film.class,id1);
Fc_member_filmf1=jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?",Fc_member_film.class,id1);
Fc_member_filmf2=jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?",Fc_member_film.class,id2);
Fc_member_filmf2=jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?",Fc_member_film.class,id2);
jdbcTemplate.batchUpdate("update fc_member_film set film_no = ? where id = ?",newObject[][]{{f1.getFilm_no(),id2},{f2.getFilm_no(),id1}});
jdbcTemplate.batchUpdate("update fc_member_film set film_no = ? where id = ?",newObject[][]{{f2.getFilm_no(),id1},{f1.getFilm_no(),id2}});
jdbcTemplate.batchUpdate("update fc_member_film set state = 2, apply_state = ? where id = ?",newObject[][]{{2,id1},{3,id2}});
jdbcTemplate.batchUpdate("update fc_member_film set state = 2, apply_state = ? where id = ?",newObject[][]{{2,id1},{3,id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record_ext where record_id in (select id from fc_review_record where review_id in (select id from fc_review where film_id = ?))",newObject[][]{{id1},{id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record_ext where record_id in (select id from fc_review_record where review_id in (select id from fc_review where film_id = ?))",newObject[][]{{id1},{id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = ?)",newObject[][]{{id1},{id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = ?)",newObject[][]{{id1},{id2}});
...
@@ -663,4 +664,9 @@ public class FilmServiceImpl implements FilmService {
...
@@ -663,4 +664,9 @@ public class FilmServiceImpl implements FilmService {