Commit 6a57e180 authored by Quxl's avatar Quxl

x

parent e6d31840
...@@ -24,6 +24,7 @@ import com.egolm.common.jdbc.Page; ...@@ -24,6 +24,7 @@ import com.egolm.common.jdbc.Page;
import com.egolm.common.web.ServletUtil; import com.egolm.common.web.ServletUtil;
import com.egolm.film.api.service.FilmService; import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.Messages; import com.egolm.film.api.service.Messages;
import com.egolm.film.api.service.ReviewService;
import com.egolm.film.bean.Enum_enroll; import com.egolm.film.bean.Enum_enroll;
import com.egolm.film.bean.Enum_filmtype; import com.egolm.film.bean.Enum_filmtype;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
...@@ -48,6 +49,9 @@ public class FilmServiceImpl implements FilmService { ...@@ -48,6 +49,9 @@ public class FilmServiceImpl implements FilmService {
@Autowired @Autowired
private JdbcTemplate jdbcTemplate; private JdbcTemplate jdbcTemplate;
@Autowired
private ReviewService reviewService;
@Override @Override
public List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id) { public List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_issuer where film_id = ?", Fc_member_film_issuer.class, member_film_id); return jdbcTemplate.queryForBeans("select * from fc_member_film_issuer where film_id = ?", Fc_member_film_issuer.class, member_film_id);
...@@ -593,6 +597,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -593,6 +597,7 @@ public class FilmServiceImpl implements FilmService {
jdbcTemplate.batchUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = ?)", new Object[][]{{id1}, {id2}}); jdbcTemplate.batchUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = ?)", new Object[][]{{id1}, {id2}});
jdbcTemplate.batchUpdate("delete from fc_review_history where review_id in (select id from fc_review where film_id = ?)", new Object[][]{{id1}, {id2}}); jdbcTemplate.batchUpdate("delete from fc_review_history where review_id in (select id from fc_review where film_id = ?)", new Object[][]{{id1}, {id2}});
jdbcTemplate.batchUpdate("delete from fc_review where id = ?", new Object[][]{{id1}, {id2}}); jdbcTemplate.batchUpdate("delete from fc_review where id = ?", new Object[][]{{id1}, {id2}});
reviewService.toFirstRound(id1.longValue());
} }
@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