@@ -418,100 +418,51 @@ public class FilmServiceImpl implements FilmService {
.eq("mf.film_country",film_country)
.eq("mf.play_shanghai",play_shanghai)
;
if(StringUtil.isNotBlank(keyword)){
Stringlkstr="%"+keyword+"%";
if(keyword.matches("\\d+")){
where1.where("(mf.film_no = ? or mf.en_name like ? or mf.cn_name like ? or fp.playactor_name like ?)",newObject[]{Integer.valueOf(keyword),lkstr,lkstr,lkstr});
+"(select group_concat(fp.playactor_name) from fc_member_film_playactor fp where fp.film_id = mf.id and fp.playactor_type = 'director') director_name "
+"from "+sql_film+" mf "
+"left join fc_review r on r.film_id = mf.id "
+"left join fc_film_group fg on fg.id = mf.film_group_id "
+"left join fc_member m on m.id = mf.member_id "
+"left join fc_admin a on a.adminid = mf.admin_creator "
+"where "
+"mf.id = fp.film_id "
+"and fp.playactor_type = 'director' "
+StringUtil.join(" and "," and "," "," ",where1.getStringList())
+"group by "
+"mf.id, "
+"mf.film_no, "
+"mf.en_name, "
+"mf.cn_name, "
+"mf.film_type_name, "
+"mf.film_type_name_short, "
+"mf.enroll_type_name, "
+"mf.enroll_type_name_other, "
+"mf.film_total_time, "
+"mf.completion_date, "
+"mf.play_shanghai, "
+"mf.state, "
+"mf.apply_state, "
+"mf.upload_id, "
+"mf.upload_state, "
+"mf.film_country, "
+"fg.group_name, "
+"r.review_round, "
+"r.review_state, "
+"r.allot_state, "
+"r.opt_state "
+"order by mf.film_no";
+StringUtil.join(" and "," where "," "," ",where1.getStringList());
List<Object>objs=newArrayList<Object>();
Object[]ary1=where1.getObjectArray();
for(Objectobj:ary1){
objs.add(obj);
}
SqlWherewhere2=newSqlWhere()
.eq("t.review_round",review_round)
.eq("t.review_state",review_state)
.eq("t.allot_atate",allot_atate)
.eq("t.opt_state",opt_state)
;
if(StringUtil.isNotBlank(keyword)){
Stringlkstr="%"+keyword+"%";
if(keyword.matches("\\d+")){
where2.where("(t.film_no = ? or t.en_name like ? or t.cn_name like ? or t.director_name like ?)",newObject[]{Integer.valueOf(keyword),lkstr,lkstr,lkstr});