@@ -77,7 +77,7 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -77,7 +77,7 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+"select "
+"select "
+"t.* "
+"t.* "
+"from "
+"from "
+""+table+" t where 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.isNotBlank(film_country)?(" and t.film_country = '"+film_country+"'"):"");
returnjdbcTemplate.limit(sql,page);
returnjdbcTemplate.limit(sql,page);
}
}
...
@@ -95,11 +95,13 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -95,11 +95,13 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+"select "
+"select "
+"t.*, "
+"t.*, "
+"r.review_state, "
+"r.review_state, "
+"r.review_round "
+"r.review_round, "
+"r.opt_state "
+"from "
+"from "
+""+table+" t left join fc_review r on r.film_id = t.id";
+""+table+" t left join fc_review r on r.film_id = t.id";
SqlWherewehre=newSqlWhere()
SqlWherewehre=newSqlWhere()
.where("tt.opt_state = 3 and tt.review_state != 1")