Commit 07a30085 authored by Quxl's avatar Quxl

x

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