Commit 221ed465 authored by Quxl's avatar Quxl

x

parent 30ce3595
...@@ -612,6 +612,12 @@ public class FilmServiceImpl implements FilmService { ...@@ -612,6 +612,12 @@ public class FilmServiceImpl implements FilmService {
Fc_member_film film = this.queryMemberFilmById(member_film_id); Fc_member_film film = this.queryMemberFilmById(member_film_id);
List<Fc_member_film_playactor> playactors = this.queryMemberFilmPlayactorList(member_film_id); List<Fc_member_film_playactor> playactors = this.queryMemberFilmPlayactorList(member_film_id);
List<String> strs = new ArrayList<String>(); List<String> strs = new ArrayList<String>();
for(Fc_member_film_playactor playactor : playactors) {
if(playactor.getPlayactor_type() != null && playactor.getPlayactor_type().equals("director")) {
strs.add(playactor.getPlayactor_name());
}
}
String directors = StringUtil.join(", ", strs);
if(film.getFilm_no() != null) { if(film.getFilm_no() != null) {
strs.add(StringUtil.formatLength(film.getFilm_no(), "0000")); strs.add(StringUtil.formatLength(film.getFilm_no(), "0000"));
} }
...@@ -621,13 +627,8 @@ public class FilmServiceImpl implements FilmService { ...@@ -621,13 +627,8 @@ public class FilmServiceImpl implements FilmService {
if(StringUtil.isNotBlank(film.getCn_name())) { if(StringUtil.isNotBlank(film.getCn_name())) {
strs.add(film.getCn_name()); strs.add(film.getCn_name());
} }
for(Fc_member_film_playactor playactor : playactors) {
if(playactor.getPlayactor_type() != null && playactor.getPlayactor_type().equals("director")) {
strs.add(playactor.getPlayactor_name());
}
}
String keywords = StringUtil.join(", ", strs); String keywords = StringUtil.join(", ", strs);
jdbcTemplate.executeUpdate("update fc_member_film set keywords = ? where id = ?", keywords, member_film_id); jdbcTemplate.executeUpdate("update fc_member_film set director_name = ?, keywords = ? where id = ?", directors, keywords, member_film_id);
} }
......
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