jdbcTemplate.executeUpdate("update fc_member_film set play_shanghai = ?, last_modify_time = ? where member_id = ? and id = ?",play_shanghai,last_modify_time,member_id,member_film_id);
jdbcTemplate.executeUpdate("delete from fc_member_film_show where film_id = ?",member_film_id);
Stringsql="select mf.*, (select GROUP_CONCAT(mfd.director_name) from fc_member_film_director mfd where mfd.film_id = mf.id) director_name from fc_member_film mf"+StringUtil.join(" and "," where ","","",where.getStringList());
Object[]objs=where.getObjectList();
returnjdbcTemplate.limit(sql,page,objs);
}
@Override
publicvoidpass(Integermember_film_id){
Stringsql="update fc_member_film set apply_state = ? where id = ?";
jdbcTemplate.executeUpdate(sql,2,member_film_id);
}
@Override
publicvoidreject(Integermember_film_id){
Stringsql="update fc_member_film set apply_state = ? where id = ?";
jdbcTemplate.executeUpdate("update fc_member_film set play_shanghai = ?, last_modify_time = ? where member_id = ? and id = ?",play_shanghai,last_modify_time,member_id,member_film_id);
jdbcTemplate.executeUpdate("delete from fc_member_film_show where film_id = ?",member_film_id);
Stringsql="select mf.*, (select GROUP_CONCAT(mfd.director_name) from fc_member_film_director mfd where mfd.film_id = mf.id) director_name from fc_member_film mf"+StringUtil.join(" and "," where ","","",where.getStringList());
Object[]objs=where.getObjectList();
returnjdbcTemplate.limit(sql,page,objs);
}
@Override
publicvoidpass(Integermember_film_id){
Stringsql="update fc_member_film set apply_state = ? where id = ?";
jdbcTemplate.executeUpdate(sql,2,member_film_id);
}
@Override
publicvoidreject(Integermember_film_id){
Stringsql="update fc_member_film set apply_state = ? where id = ?";