Commit a5399332 authored by Quxl's avatar Quxl

x

parent c10043a4
...@@ -429,49 +429,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -429,49 +429,6 @@ public class FilmServiceImpl implements FilmService {
Object[] objs = where.getObjectList(); Object[] objs = where.getObjectList();
return jdbcTemplate.limit(sql, page, objs); return jdbcTemplate.limit(sql, page, objs);
} }
public static void main(String[] args) {
String sql = ""
+ "select "
+ "mf.id, "
+ "mf.film_no, "
+ "mf.origion_name, "
+ "mf.en_name, "
+ "mf.cn_name, "
+ "mf.film_type_name, "
+ "mf.film_country, "
+ "mf.film_type_name, "
+ "mf.film_type_name_short, "
+ "mf.upload_state, "
+ "r.id review_id, "
+ "r.review_round, "
+ "r.review_state, "
+ "r.allot_state, "
+ "r.state, "
+ "r.enroll_type_id, "
+ "(select group_concat(fp.playactor_name) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director' group by fp.film_id, fp.playactor_type) director_name, "
+ "count(rr.id) user_count "
+ "from "
+ "fc_member_film mf, "
+ "fc_review r left join fc_review_record rr on rr.review_id = r.id and rr.review_round = r.review_round "
+ "where "
+ "r.film_id = mf.id "
+ "group by "
+ "mf.id, "
+ "mf.film_no, "
+ "mf.origion_name, "
+ "mf.en_name, "
+ "mf.cn_name, "
+ "mf.film_type_name, "
+ "mf.film_country, "
+ "r.id, "
+ "r.review_round, "
+ "r.review_state, "
+ "r.allot_state,"
+ "r.enroll_type_id "
;
System.out.println(sql);
}
@Override @Override
public synchronized Integer pass(Long member_film_id) { public synchronized Integer pass(Long member_film_id) {
......
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