Commit a262a66e authored by Quxl's avatar Quxl

x

parent fbc94cdd
......@@ -29,6 +29,7 @@ import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.ReviewService;
import com.egolm.film.bean.Fc_admin;
import com.egolm.film.bean.Fc_logs_ext;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
import com.egolm.film.bean.Fc_review;
import com.egolm.film.config.XRException;
......@@ -122,25 +123,25 @@ public class WebUtilController {
return Rjx.jsonOk();
}
// @ResponseBody
// @Transactional
// @PostMapping("initAllReview")
// @ApiOperation("初始化所有审片流程")
// public Object initAllReview() {
// this.verifyAuth();
// jdbcTemplate.executeUpdate("delete from fc_review");
// jdbcTemplate.executeUpdate("delete from fc_review_record");
// jdbcTemplate.executeUpdate("delete from fc_review_history");
// jdbcTemplate.executeUpdate("delete from fc_review_record_ext");
// List<Fc_member_film> films = jdbcTemplate.queryForBeans("select * from fc_member_film where apply_state = 2", Fc_member_film.class);
// for(Fc_member_film film : films) {
// String enroll_type_name = film.getEnroll_type_name();
// if(enroll_type_name != null && enroll_type_name.length() > 0) {
// service.toFirstRound(film.getId());
// }
// }
// return Rjx.jsonOk();
// }
@ResponseBody
@Transactional
@PostMapping("initAllReview")
@ApiOperation("初始化所有审片流程")
public Object initAllReview() {
this.verifyAuth();
jdbcTemplate.executeUpdate("delete from fc_review");
jdbcTemplate.executeUpdate("delete from fc_review_record");
jdbcTemplate.executeUpdate("delete from fc_review_history");
jdbcTemplate.executeUpdate("delete from fc_review_record_ext");
List<Fc_member_film> films = jdbcTemplate.queryForBeans("select * from fc_member_film where apply_state = 2", Fc_member_film.class);
for(Fc_member_film film : films) {
String enroll_type_name = film.getEnroll_type_name();
if(enroll_type_name != null && enroll_type_name.length() > 0) {
service.toFirstRound(film.getId());
}
}
return Rjx.jsonOk();
}
@ResponseBody
@Transactional
......
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