@@ -89,7 +88,8 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -89,7 +88,8 @@ public class ReviewServiceImpl implements ReviewService {
+"r.allot_state, "
+"r.allot_state, "
+"r.opt_state, "
+"r.opt_state, "
+"(select group_concat(fp.playactor_name) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director' group by fp.film_id, fp.playactor_type) director_name, "
+"(select group_concat(fp.playactor_name) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director' group by fp.film_id, fp.playactor_type) director_name, "
+"count(rr.id) user_count "
+"count(rr.id) user_count, "
+"count(case when rr.review_state is not null then rr.id end) user_review_count "
+"from "
+"from "
+sql_film+" mf, "
+sql_film+" mf, "
+"fc_review r left join fc_review_record rr on rr.review_id = r.id and rr.review_round = r.review_round "
+"fc_review r left join fc_review_record rr on rr.review_id = r.id and rr.review_round = r.review_round "
...
@@ -309,39 +309,41 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -309,39 +309,41 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate.executeUpdate("update fc_review set review_round = ?, opt_state = 0, allot_state = ?, review_state = null, push_time = now() where id = ?",review_round,allot_state,review_id);
jdbcTemplate.executeUpdate("update fc_review set review_round = ?, opt_state = 0, allot_state = ?, review_state = null, push_time = now() where id = ?",review_round,allot_state,review_id);
jdbcTemplate.executeUpdate("update fc_review set opt_state = 3, review_state = ? where id = ?",reviewState,reviewId);
}
}
@Override
@Override
...
@@ -349,29 +351,54 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -349,29 +351,54 @@ public class ReviewServiceImpl implements ReviewService {
publicvoidtryNextRound(Integerreview_id){
publicvoidtryNextRound(Integerreview_id){
Fc_reviewreview=jdbcTemplate.queryForBean("select * from fc_review where id = ?",Fc_review.class,review_id);
Fc_reviewreview=jdbcTemplate.queryForBean("select * from fc_review where id = ?",Fc_review.class,review_id);
List<Fc_review_record>records=jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ? and review_round = ?",Fc_review_record.class,review.getId(),review.getReview_round());
List<Fc_review_record>records=jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ? and review_round = ?",Fc_review_record.class,review.getId(),review.getReview_round());