Commit 8177f701 authored by Quxl's avatar Quxl

x

parent c6203646
...@@ -748,10 +748,12 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -748,10 +748,12 @@ public class ReviewServiceImpl implements ReviewService {
+ "mf.completion_date, " + "mf.completion_date, "
+ "mf.play_shanghai, " + "mf.play_shanghai, "
+ "rh.review_round state_3_round, " + "rh.review_round state_3_round, "
+ "mfe.enroll_type_id original_enroll_type_id, "
+ "(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 "
+ "from " + "from "
+ "fc_review r " + "fc_review r "
+ "left join fc_member_film mf on mf.id = r.film_id " + "left join fc_member_film mf on mf.id = r.film_id "
+ "left join fc_member_film_enroll mfe on mfe.film_id = r.film_id and mfe.enroll_type_id = 4 "
+ "left join fc_review_history rh on rh.enroll_type_id != 4 and rh.review_state = 3 and rh.review_id = r.id" + "left join fc_review_history rh on rh.enroll_type_id != 4 and rh.review_state = 3 and rh.review_id = r.id"
+ (enroll_type_id == null ? "" : (", fc_member_film_enroll mfe where mfe.film_id = r.film_id and mfe.enroll_type_id = " + enroll_type_id)) + (enroll_type_id == null ? "" : (", fc_member_film_enroll mfe where mfe.film_id = r.film_id and mfe.enroll_type_id = " + enroll_type_id))
; ;
...@@ -763,9 +765,9 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -763,9 +765,9 @@ public class ReviewServiceImpl implements ReviewService {
; ;
if(from_round != null) { if(from_round != null) {
if(from_round == 0) { if(from_round == 0) {
where.where("t.state_3_round is null"); where.where("t.original_enroll_type_id = 4");
} else { } else {
where.eq("state_3_round", from_round); where.eq("t.state_3_round", from_round);
} }
} }
sql = "select t.* from (" + sql + ") t " + StringUtil.join(" and ", " where ", "", where.getStringList()) + " order by t.film_id desc"; sql = "select t.* from (" + sql + ") t " + StringUtil.join(" and ", " where ", "", where.getStringList()) + " order by t.film_id desc";
......
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