//String sql = "select mf.id, mf.film_no, r.id review_id, r.review_round, r.review_state, r.allot_state, r.enroll_type_id, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf, fc_review r where r.film_id = mf.id" + StringUtil.join(" and ", " and ", "", "", w1.getStringList());
Stringsql=""
+"select "
+"mf.id, "
+"mf.film_no, "
+"mf.origion_name, "
+"mf.en_name, "
+"mf.cn_name, "
+"mf.film_country, "
+"mf.film_type_name, "
+"mf.film_type_name_short, "
+"mf.upload_state, "
+"r.id review_id, "
+"r.review_round, "
+"r.review_state, "
+"r.allot_state, "
+"r.state, "
+"r.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, "
+"count(rr.id) user_count "
+"from "
+"fc_member_film mf, "
+"fc_review r left join fc_review_record rr on rr.review_id = r.id and rr.review_round = r.review_round "
+"where "
+"r.film_id = mf.id "
+StringUtil.join(" and "," and "," "," ",w1.getStringList())
//String sql = "select mf.id, mf.film_no, r.id review_id, r.review_round, r.review_state, r.allot_state, r.enroll_type_id, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf, fc_review r where r.film_id = mf.id" + StringUtil.join(" and ", " and ", "", "", w1.getStringList());
Stringsql=""
+"select "
+"mf.id, "
+"mf.film_no, "
+"mf.origion_name, "
+"mf.en_name, "
+"mf.cn_name, "
+"mf.film_country, "
+"mf.film_type_name, "
+"mf.film_type_name_short, "
+"mf.upload_state, "
+"r.id review_id, "
+"r.review_round, "
+"r.review_state, "
+"r.allot_state, "
+"r.state, "
+"r.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, "
+"count(rr.id) user_count "
+"from "
+"fc_member_film mf, "
+"fc_review r left join fc_review_record rr on rr.review_id = r.id and rr.review_round = r.review_round "
+"where "
+"r.film_id = mf.id "
+StringUtil.join(" and "," and "," "," ",w1.getStringList())