Commit 6581089f authored by Quxl's avatar Quxl

x

parent 5dab25b4
......@@ -491,7 +491,7 @@ public class FilmServiceImpl implements FilmService {
.eq("r.review_round", review_round)
.eq("r.enroll_type_id", enroll_type_id)
.in("r.review_state", review_state);
String sql = "select mf.id, mf.film_no, rr.id review_id, rr.review_round, rr.review_state, 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, fc_review_record rr where r.film_id = mf.id and rr.review_id = r.id and rr.review_round = r.review_round" + StringUtil.join(" and ", " and ", "", "", w1.getStringList());
String sql = "select mf.id, mf.film_no, r.id review_id, r.review_round, r.review_state, 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());
return jdbcTemplate.limit(sql, page, w1.getObjectList());
}
......@@ -504,7 +504,7 @@ public class FilmServiceImpl implements FilmService {
objs[i] = new Object[]{review_id, user_id[i], review_round, review_id, user_id[i], review_round};
}
jdbcTemplate.batchUpdate(sql, objs);
jdbcTemplate.executeUpdate("update fc_review_record set review_state = 1 where review_id = ?", review_id);
jdbcTemplate.executeUpdate("update fc_review_record set review_state = 1 where review_id = ? and review_round = ?", review_id, review_round);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment