Commit e4fd4e5c authored by Quxl's avatar Quxl

x

parent 3a5eb65b
......@@ -30,14 +30,14 @@ public class FilmGroupServiceImpl implements FilmGroupService {
@Override
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
@Transactional
public void removeFilmGroupById(Integer 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
......
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