Commit 10535be2 authored by Quxl's avatar Quxl

x

parent afd7bd35
...@@ -584,34 +584,36 @@ public class ExportServiceImpl implements ExportService { ...@@ -584,34 +584,36 @@ public class ExportServiceImpl implements ExportService {
System.out.println(JSON.toJSONString(filmExt)); System.out.println(JSON.toJSONString(filmExt));
System.out.println(JSON.toJSONString(film)); System.out.println(JSON.toJSONString(film));
Map<String, String> stringVars = new HashMap<String, String>(); Map<String, String> stringVars = new HashMap<String, String>();
stringVars.put("1,1", film.getCn_name()); stringVars.put("1,1", film.getCn_name());
stringVars.put("2,1", film.getEn_name()); stringVars.put("2,1", film.getEn_name());
stringVars.put("3,1", filmExt.getDirector_en());
stringVars.put("6,1", film.getFilm_country()); stringVars.put("6,1", film.getFilm_country());
stringVars.put("7,1", film.getCompletion_date()); stringVars.put("7,1", film.getCompletion_date());
stringVars.put("8,1", film.getFilm_total_time()); stringVars.put("8,1", film.getFilm_total_time());
stringVars.put("9,1", ExportConstant.fmtopts.get(String.valueOf(filmExt.getFormat()))); if(filmExt != null) {
stringVars.put("11,1", filmExt.getScreenplay()); stringVars.put("3,1", filmExt.getDirector_en());
stringVars.put("13,1", filmExt.getDirector_of_photography()); stringVars.put("9,1", ExportConstant.fmtopts.get(String.valueOf(filmExt.getFormat())));
stringVars.put("15,1", filmExt.getMusic()); stringVars.put("11,1", filmExt.getScreenplay());
stringVars.put("17,1", filmExt.getProduction_designer()); stringVars.put("13,1", filmExt.getDirector_of_photography());
stringVars.put("19,1", filmExt.getExecutive_producer()); stringVars.put("15,1", filmExt.getMusic());
stringVars.put("21,1", filmExt.getEditor()); stringVars.put("17,1", filmExt.getProduction_designer());
stringVars.put("23,1", filmExt.getProducer_en()); stringVars.put("19,1", filmExt.getExecutive_producer());
stringVars.put("25,1", filmExt.getCast()); stringVars.put("21,1", filmExt.getEditor());
stringVars.put("27,1", filmExt.getProduction_en()); stringVars.put("23,1", filmExt.getProducer_en());
stringVars.put("29,1", filmExt.getWorld_sales()); stringVars.put("25,1", filmExt.getCast());
stringVars.put("30,1", ExportConstant.resolutionopts.get(String.valueOf(filmExt.getResolution()).trim())); stringVars.put("27,1", filmExt.getProduction_en());
stringVars.put("31,1", ExportConstant.aspectopts.get(String.valueOf(filmExt.getAspect_ratio()).trim())); stringVars.put("29,1", filmExt.getWorld_sales());
stringVars.put("32,1", ExportConstant.soundopts.get(String.valueOf(filmExt.getSound_format()).trim())); stringVars.put("30,1", ExportConstant.resolutionopts.get(String.valueOf(filmExt.getResolution()).trim()));
stringVars.put("33,1", ExportConstant.frameopts.get(String.valueOf(filmExt.getFrame_rate()).trim())); stringVars.put("31,1", ExportConstant.aspectopts.get(String.valueOf(filmExt.getAspect_ratio()).trim()));
stringVars.put("34,1", ExportConstant.kdmopts.get(String.valueOf(filmExt.getKdm()).trim())); stringVars.put("32,1", ExportConstant.soundopts.get(String.valueOf(filmExt.getSound_format()).trim()));
stringVars.put("5,3", filmExt.getSynopsis_cn()); stringVars.put("33,1", ExportConstant.frameopts.get(String.valueOf(filmExt.getFrame_rate()).trim()));
stringVars.put("12,3", filmExt.getSynopsis_en()); stringVars.put("34,1", ExportConstant.kdmopts.get(String.valueOf(filmExt.getKdm()).trim()));
stringVars.put("20,5", filmExt.getDirector_biography_cn()); stringVars.put("5,3", filmExt.getSynopsis_cn());
stringVars.put("24,5", filmExt.getDirector_biography_en()); stringVars.put("12,3", filmExt.getSynopsis_en());
stringVars.put("19,5", filmExt.getDirector_cn()); stringVars.put("20,5", filmExt.getDirector_biography_cn());
stringVars.put("23,5", filmExt.getDirector_en()); stringVars.put("24,5", filmExt.getDirector_biography_en());
stringVars.put("19,5", filmExt.getDirector_cn());
stringVars.put("23,5", filmExt.getDirector_en());
}
for(String key : stringVars.keySet()) { for(String key : stringVars.keySet()) {
String value = stringVars.get(key); String value = stringVars.get(key);
value = value == null ? "" : value.trim(); value = value == null ? "" : value.trim();
...@@ -634,11 +636,13 @@ public class ExportServiceImpl implements ExportService { ...@@ -634,11 +636,13 @@ public class ExportServiceImpl implements ExportService {
} }
} }
} }
Map<String, String> photoVars = new HashMap<String, String>(); Map<String, String> photoVars = new HashMap<String, String>();
photoVars.put("1,4,10,4", filmExt.getPhoto_mv()); if(filmExt != null) {
photoVars.put("3,19,4,26", filmExt.getPhoto_director()); photoVars.put("1,4,10,4", filmExt.getPhoto_mv());
HSSFPatriarch patriarch = sheet.createDrawingPatriarch(); photoVars.put("3,19,4,26", filmExt.getPhoto_director());
}
HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
for(String key : photoVars.keySet()) { for(String key : photoVars.keySet()) {
if(StringUtil.isNotBlank(key)) { if(StringUtil.isNotBlank(key)) {
try { try {
......
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