Commit 4fcf6bbf authored by Quxl's avatar Quxl

x

parent 1d8690e1
......@@ -28,28 +28,18 @@ public class ExportServiceImpl implements ExportService {
private static final Map<String, String> types = new HashMap<String, String>();
static {
types.put("director", "导演");
types.put("producer", "监制");
types.put("original", "原著");
types.put("producer", "制片人");
types.put("screenwriter", "编剧");
types.put("photographer", "摄影师");
types.put("musicAuthor", "音乐");
types.put("filmEditor", "剪辑");
types.put("presenter", "主持人");
types.put("officiatingGuests", "主持嘉宾");
types.put("art", "美术");
types.put("stylist", "造型");
types.put("effectArtist", "特效");
types.put("hero", "男主演");
types.put("heroine", "女主演");
types.put("supportingActor", "男配角");
types.put("supportingActress", "女配角");
types.put("photographer", "摄影");
types.put("actor", "男演员");
types.put("actress", "女演员");
types.put("issuser", "发行方");
types.put("show", "参加过的电视节");
}
private List<Map<String, Object>> queryFilmDataList() {
String sql = "select t.* from fc_member_film t";
String sql0 = "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";
String sql1 = "select group_concat(fi.issuer_company, ' ', fi.issuer_company_en) text, fi.film_id from fc_member_film_issuer fi group by fi.film_id";
String sql1 = "select group_concat(fi.issuer_company) text, fi.film_id from fc_member_film_issuer fi group by fi.film_id";
String sql2 = "select group_concat(fs.show_filmfest) text, fs.film_id from fc_member_film_show fs group by fs.film_id";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
List<Map<String, Object>> playactors = jdbcTemplate.queryForList(sql0);
......@@ -67,7 +57,7 @@ public class ExportServiceImpl implements ExportService {
Map<String, Object> issuerMap = issuerMM.get(id_str);
Map<String, Object> showMap = showMM.get(id_str);
map.put("issuer", issuerMap == null ? null : issuerMap.get("text"));
map.put("issuer", showMap == null ? null : showMap.get("text"));
map.put("show", showMap == null ? null : showMap.get("text"));
}
return list;
......
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