Commit 812dab18 authored by Quxl's avatar Quxl

x

parent 060255ba
...@@ -414,11 +414,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -414,11 +414,6 @@ public class FilmServiceImpl implements FilmService {
.eq("mf.play_shanghai", play_shanghai) .eq("mf.play_shanghai", play_shanghai)
.in("mf.film_type_id", film_type_id) .in("mf.film_type_id", film_type_id)
.lk("mf.keywords", keyword) .lk("mf.keywords", keyword)
.where("r.film_id = mf.id")
.eq("r.review_round", review_round)
.eq("r.review_state", review_state)
.eq("r.allot_atate", allot_atate)
.eq("r.opt_state", opt_state)
; ;
String sql_film = "fc_member_film"; String sql_film = "fc_member_film";
if(StringUtil.isNotBlank(enroll_type_id)) { if(StringUtil.isNotBlank(enroll_type_id)) {
...@@ -435,12 +430,23 @@ public class FilmServiceImpl implements FilmService { ...@@ -435,12 +430,23 @@ public class FilmServiceImpl implements FilmService {
+ "m.username member_name, " + "m.username member_name, "
+ "a.realname admin_name " + "a.realname admin_name "
+ "from " + sql_film + " mf " + "from " + sql_film + " mf "
+ "left join fc_review r on r.film_id = mf.id "
+ "left join fc_film_group fg on fg.id = mf.film_group_id " + "left join fc_film_group fg on fg.id = mf.film_group_id "
+ "left join fc_member m on m.id = mf.member_id " + "left join fc_member m on m.id = mf.member_id "
+ "left join fc_admin a on a.adminid = mf.admin_creator" + "left join fc_admin a on a.adminid = mf.admin_creator"
+ ", fc_review r, fc_admin_group_filmtype agf" + ", fc_admin_group_filmtype agf"
+ StringUtil.join(" and ", " where ", " ", " ", where.getStringList()); + StringUtil.join(" and ", " where ", " ", " ", where.getStringList());
return jdbcTemplate.limit(sql, page, where.getObjectArray()); List<Object> objs = new ArrayList<Object>();
objs.addAll(where.getObjectList());
SqlWhere where2 = new SqlWhere()
.eq("t.review_round", review_round)
.eq("t.review_state", review_state)
.eq("t.allot_atate", allot_atate)
.eq("t.opt_state", opt_state)
;
sql = "select t.* from (" + sql + ") t" + StringUtil.join(" and ", " where ", " ", " ", where2.getStringList()) + " order by t.id desc";
objs.addAll(where2.getObjectList());
return jdbcTemplate.limit(sql, page, objs.toArray());
} }
@Override @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