Stringsql0="select group_concat(fp.playactor_name) text, fp.film_id, fp.playactor_type from fc_member_film_playactor fp group by fp.film_id, fp.playactor_type";
Stringsql0="select group_concat(fp.playactor_name) text, fp.film_id, fp.playactor_type from fc_member_film_playactor fp group by fp.film_id, fp.playactor_type";
Stringsql1="select group_concat(fi.issuer_company) text, fi.film_id from fc_member_film_issuer fi group by fi.film_id";
Stringsql1="select group_concat(fi.issuer_company) text, fi.film_id from fc_member_film_issuer fi group by fi.film_id";
Stringsql2="select rr.*, u.realname from fc_review_record rr left join fc_user u on u.uid = rr.user_id";
Stringsql2="select rr.*, u.realname from fc_review_record rr left join fc_user u on u.uid = rr.user_id";
...
@@ -316,13 +245,13 @@ public class ExportServiceImpl implements ExportService {
...
@@ -316,13 +245,13 @@ public class ExportServiceImpl implements ExportService {
@@ -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,44 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -112,8 +112,44 @@ 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());
Stringsql="select r.id review_id, mf.* from fc_review r left join fc_member_film mf on mf.id = r.film_id, fc_user_film uf where r.id = uf.review_id and uf.user_id = ?";
Stringsql="select r.id review_id, mf.* from fc_review r left join fc_member_film mf on mf.id = r.film_id, fc_user_film uf where r.id = uf.review_id and uf.user_id = ?";