Stringsql="select mf.*, ifnull(rv.review_state, 0) review_state, (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 rv where rv.film_id = mf.id"+StringUtil.join(" and "," where ","","",where.getStringList());
Stringsql="select mf.*, ifnull(rv.review_state, 0) review_state, (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 rv where rv.film_id = mf.id"+StringUtil.join(" and "," and ","","",where.getStringList());