@@ -87,13 +88,13 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -87,13 +88,13 @@ public class ReviewServiceImpl implements ReviewService {
+"mf.enroll_type_name, "
+"mf.enroll_type_name, "
+"mf.enroll_type_name_other, "
+"mf.enroll_type_name_other, "
+"mf.upload_state, "
+"mf.upload_state, "
+"mf.play_shanghai, "
+"mf.play_shanghai,"
+"mf.director_name, "
+"r.id review_id, "
+"r.id review_id, "
+"r.review_round, "
+"r.review_round, "
+"r.review_state, "
+"r.review_state, "
+"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, "
+"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 "
+"count(case when rr.review_state is not null then rr.id end) user_review_count "
+"from "
+"from "
...
@@ -122,18 +123,6 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -122,18 +123,6 @@ public class ReviewServiceImpl implements ReviewService {
+"r.opt_state "
+"r.opt_state "
;
;
SqlWherew2=newSqlWhere();
if(StringUtil.isNotBlank(keyword)){
Stringlkstr="%"+keyword+"%";
if(keyword.matches("\\d+")){
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ? or t.film_no = ?)",newObject[]{lkstr,lkstr,lkstr,Integer.valueOf(keyword)});
}else{
w2.where("(t.en_name like ? or t.cn_name like ? or t.director_name like ?)",newObject[]{lkstr,lkstr,lkstr});
}
sql="select t.* from ("+sql+") t"+StringUtil.join(" and "," where "," "," ",w2.getStringList());
@@ -624,14 +613,15 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -624,14 +613,15 @@ public class ReviewServiceImpl implements ReviewService {
+"mf.film_total_time, "
+"mf.film_total_time, "
+"mf.completion_date, "
+"mf.completion_date, "
+"mf.play_shanghai, "
+"mf.play_shanghai, "
+"(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 "
+"mf.director_name, "
+"mf.keywords "
+"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 "
+(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))