Commit cd951c43 authored by Quxl's avatar Quxl

xx

parent 3a5eb65b
...@@ -30,14 +30,14 @@ public class FilmGroupServiceImpl implements FilmGroupService { ...@@ -30,14 +30,14 @@ public class FilmGroupServiceImpl implements FilmGroupService {
@Override @Override
public void updateFilmGroupId(Integer film_id, Integer group_id) { public void updateFilmGroupId(Integer film_id, Integer group_id) {
jdbcTemplate.executeUpdate("update fc_member_film set group_id = ? where id = ?", group_id, film_id); jdbcTemplate.executeUpdate("update fc_member_film set film_group_id = ? where id = ?", group_id, film_id);
} }
@Override @Override
@Transactional @Transactional
public void removeFilmGroupById(Integer id) { public void removeFilmGroupById(Integer id) {
jdbcTemplate.executeUpdate("delete from fc_film_group where id = ?", id); jdbcTemplate.executeUpdate("delete from fc_film_group where id = ?", id);
jdbcTemplate.executeUpdate("update fc_member_film set group_id = ? where group_id = ?", null, id); jdbcTemplate.executeUpdate("update fc_member_film set film_group_id = ? where film_group_id = ?", null, id);
} }
@Override @Override
......
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