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 left join fc_review rv on rv.film_id = mf.id"+StringUtil.join(" and "," where ","","",where.getStringList());
List<Integer>ids=jdbcTemplate.queryForObjects("select ugf.fun_id from fc_user_group_fun ugf, fc_user u where ugf.group_id = u.group_id",Integer.class,user_id);
returnjdbcTemplate.queryForBean("select * from fc_review_record where user_id = ? and review_id = ?",Fc_review_record.class,user_id,review_id);
Stringsql="select rr.* from fc_review_record rr, fc_review r where rr.user_id = ? and rr.review_id = ? and rr.review_id = r.id and rr.review_round = r.review_round";