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+")";
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 {
...
@@ -77,15 +81,25 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+"select "
+"select "
+"t.* "
+"t.* "
+"from "
+"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+"'"):"");
+""+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());
@@ -98,21 +112,7 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -98,21 +112,7 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+"r.review_round, "
+"r.review_round, "
+"r.opt_state "
+"r.opt_state "
+"from "
+"from "
+""+table+" t left join fc_review r on r.film_id = t.id";
+""+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());
SqlWherewehre=newSqlWhere()
.where("tt.opt_state = 3 and tt.review_state != 1")