@@ -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 or t.film_group_id = 0) "+StringUtil.join(" and "," 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) and (t.not_invite is null or t.not_invite = 0) "+StringUtil.join(" and "," and ","","",wehre.getStringList());
@@ -112,8 +112,39 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -112,8 +112,39 @@ 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 and t.film_group_id != 0 "+StringUtil.join(" and "," 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 and (t.not_invite is null or t.not_invite = 0) "+StringUtil.join(" and "," and ","","",wehre.getStringList());
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+")";
}
Stringsql=""
+"select "
+"t.*, "
+"r.review_state, "
+"r.review_round, "
+"r.opt_state "
+"from "
+""+table+" t, fc_review r where r.film_id = t.id and r.opt_state = 3 and r.review_state != 2 and t.not_invite = 1) "+StringUtil.join(" and "," and ","","",wehre.getStringList());