Commit 7fdbc579 authored by Quxl's avatar Quxl

x

parent 0520e2c8
...@@ -86,6 +86,8 @@ public interface ReviewService { ...@@ -86,6 +86,8 @@ public interface ReviewService {
List<Map<String, Object>> queryReviewRecordListByReviewId(Integer review_id); List<Map<String, Object>> queryReviewRecordListByReviewId(Integer review_id);
void rmReviewData(Long member_film_id);
void toFirstRound(Long member_film_id); void toFirstRound(Long member_film_id);
void toRound(Integer review_id, Integer review_round); void toRound(Integer review_id, Integer review_round);
......
...@@ -261,6 +261,16 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -261,6 +261,16 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.queryForList(sql, review_id); return jdbcTemplate.queryForList(sql, review_id);
} }
@Override
@Transactional
public void rmReviewData(Long member_film_id) {
jdbcTemplate.executeUpdate("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 = " + member_film_id + "))");
jdbcTemplate.executeUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = " + member_film_id + ")");
jdbcTemplate.executeUpdate("delete from fc_review where film_id = " + member_film_id);
jdbcTemplate.executeUpdate("delete from fc_review_history where film_id = " + member_film_id);
jdbcTemplate.executeUpdate("delete from fc_review_doubtful where review_id in (select id from fc_review where film_id = " + member_film_id + ")");
}
@Override @Override
@Transactional @Transactional
public void toFirstRound(Long member_film_id) { public void toFirstRound(Long member_film_id) {
......
...@@ -134,6 +134,19 @@ public class AdminFirstController { ...@@ -134,6 +134,19 @@ public class AdminFirstController {
return rjx; return rjx;
} }
@ResponseBody
@Transactional
@PostMapping("initReview")
@ApiOperation("初始化审片数据")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="申报影片ID"),
})
public Object initReview(Long member_film_id) {
reviewService.rmReviewData(member_film_id);
reviewService.toFirstRound(member_film_id);
return Rjx.jsonOk();
}
@ResponseBody @ResponseBody
@PostMapping("reject") @PostMapping("reject")
@ApiOperation("初审驳回") @ApiOperation("初审驳回")
......
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