Stringsql="select ug.group_id, ug.group_name, count(u.uid) count, group_concat(ugf.fun_id) funs from fc_user_group ug, fc_user_group_fun ugf, fc_user u where ugf.group_id = ug.group_id and u.group_id = ug.group_id"+StringUtil.join(" and "," and "," "," ",argEdit.getStringList())+"group by ug.group_id, group_name";
Stringsql="SELECT ug.group_id, ug.group_name, (select count(u.uid) from fc_user u where u.group_id = ug.group_id) count, (select group_concat(ugf.fun_id) from fc_user_group_fun ugf where ugf.group_id = ug.group_id group by ugf.group_id) funs FROM fc_user_group ug"+StringUtil.join(" and "," where "," "," ",argEdit.getStringList());
Fc_member_film_enrollenroll=this.jdbcTemplate.queryForBean("select * from fc_member_film_enroll where film_id = ? and enroll_type_id = ?",Fc_member_film_enroll.class,member_film_id,enroll_type_id);
Integerround=enroll.getReview_round();
IntegernextRound=null;
if(round==null||round==0){
nextRound=1;
}else{
nextRound=round+1;
}
jdbcTemplate.executeUpdate("update fc_member_film_enroll set review_round = ? where film_id = ? and enroll_type_id = ?",nextRound,member_film_id,enroll_type_id);
Integercount=jdbcTemplate.queryForInt("select count(id) from fc_review where film_id = ? and review_round = ? and enroll_type_id = ?",member_film_id,nextRound,enroll_type_id);
Integercount=jdbcTemplate.executeUpdate("update fc_review set review_round = review_round + 1 where film_id = ? and enroll_type_id = ?",member_film_id,enroll_type_id);