Commit 9f67b38e authored by Quxl's avatar Quxl

x

parent d645af45
...@@ -81,7 +81,7 @@ public class FilmGroupServiceImpl implements FilmGroupService { ...@@ -81,7 +81,7 @@ 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.join(" and ", " ", "", "", 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 null or t.film_group_id = 0) " + StringUtil.join(" and ", " ", "", "", wehre.getStringList());
return jdbcTemplate.limit(sql, page, wehre.getObjectArray()); return jdbcTemplate.limit(sql, page, wehre.getObjectArray());
} }
...@@ -112,7 +112,7 @@ public class FilmGroupServiceImpl implements FilmGroupService { ...@@ -112,7 +112,7 @@ public class FilmGroupServiceImpl implements FilmGroupService {
+ "r.review_round, " + "r.review_round, "
+ "r.opt_state " + "r.opt_state "
+ "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 not null " + StringUtil.join(" and ", " ", "", "", 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 and t.film_group_id != 0 " + StringUtil.join(" and ", " ", "", "", wehre.getStringList());
return jdbcTemplate.limit(sql, page, wehre.getObjectArray()); return jdbcTemplate.limit(sql, page, wehre.getObjectArray());
} }
......
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