table="(select mf.* from fc_member_film mf, fc_member_film_enroll mfe where mf.id = mfe.film_id and mfe.enroll_type_id = "+enroll_type_id+")";
...
...
@@ -77,15 +81,25 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+"select "
+"t.* "
+"from "
+""+table+" t, fc_review r where r.film_id = t.id and r.opt_state = 3 and r.review_state != 2 and t.film_group_id is null "+(StringUtil.isNotBlank(film_country)?(" and t.film_country = '"+film_country+"'"):"");
returnjdbcTemplate.limit(sql,page);
+""+table+" t, fc_review r where r.film_id = t.id and r.opt_state = 3 and r.review_state != 2 and t.film_group_id is null "+StringUtil.join(" and "," ","","",wehre.getStringList());
sql="select tt.* from ("+sql+") tt "+StringUtil.join(" and "," where ","","",wehre.getStringList());
+""+table+" t, fc_review r where r.film_id = t.id and r.opt_state = 3 and r.review_state != 2 and t.film_group_id is not null "+StringUtil.join(" and "," ","","",wehre.getStringList());