Commit c2c8a965 authored by Quxl's avatar Quxl

x

parent af3acb1d
......@@ -92,28 +92,32 @@ public class WebApiController {
{
String director_cn = (String)extMap.get("director_cn");
String director_en = (String)extMap.get("director_en");
String[] directorCnArray = director_cn.split(",");
String[] directorEnArray = director_en.split(",", directorCnArray.length);
List<Map<String, Object>> directorList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < directorCnArray.length; i++) {
Map<String, Object> directorMap = new HashMap<String,Object>();
directorMap.put("en_name", directorEnArray[i]);
directorMap.put("cn_name", directorCnArray[i]);
directorList.add(directorMap);
if(StringUtil.isNotBlank(director_cn)) {
String[] directorCnArray = director_cn.split(",");
String[] directorEnArray = (director_en == null ? "" : director_en).split(",", directorCnArray.length);
List<Map<String, Object>> directorList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < directorCnArray.length; i++) {
Map<String, Object> directorMap = new HashMap<String,Object>();
directorMap.put("en_name", directorEnArray[i]);
directorMap.put("cn_name", directorCnArray[i]);
directorList.add(directorMap);
}
map.put("directorList", directorList);
}
map.put("directorList", directorList);
} {
String producer_en = (String)extMap.get("producer_en");
String production_en = (String)extMap.get("production_en");
String[] producerArray = producer_en.split(",");
List<Map<String, Object>> producerList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < producerArray.length; i++) {
Map<String, Object> producerMap = new HashMap<String,Object>();
producerMap.put("producer_name", producerArray[i]);
producerMap.put("production_name", production_en);
producerList.add(producerMap);
if(StringUtil.isNotBlank(producer_en)) {
String[] producerArray = producer_en.split(",");
List<Map<String, Object>> producerList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < producerArray.length; i++) {
Map<String, Object> producerMap = new HashMap<String,Object>();
producerMap.put("producer_name", producerArray[i]);
producerMap.put("production_name", production_en);
producerList.add(producerMap);
}
map.put("producerList", producerList);
}
map.put("producerList", producerList);
}
list.add(map);
}
......
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