Commit 121f0ea6 authored by Quxl's avatar Quxl

x

parent 24c77da7
......@@ -553,7 +553,11 @@ public class FilmServiceImpl implements FilmService {
@Override
@Transactional
public void updateFilmBase(Fc_member_film_base_model filmBase) {
jdbcTemplate.saveOrUpdate(filmBase);
if(filmBase.getId() == null) {
jdbcTemplate.save(filmBase);
} else {
jdbcTemplate.update(filmBase);
}
this.updateEnroll(filmBase.getId());
}
......
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