Commit 6f166edc authored by Quxl's avatar Quxl

x

parent 2ea8e34e
package com.egolm.film.api.web;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -105,19 +106,21 @@ public class WebApiController {
}
map.put("directorList", directorList);
} {
List<Map<String, Object>> producerList = new ArrayList<Map<String, Object>>();
List<String> producerList = new ArrayList<String>();
String producer_en = (String)extMap.get("producer_en");
String production_en = (String)extMap.get("production_en");
if(StringUtil.isNotBlank(producer_en)) {
String[] producerArray = producer_en.split(",");
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);
}
producerList.addAll(Arrays.asList(producerArray));
}
map.put("producerList", producerList);
} {
List<String> productionList = new ArrayList<String>();
String production_en = (String)extMap.get("production_en");
if(StringUtil.isNotBlank(production_en)) {
String[] productionArray = production_en.split(",");
productionList.addAll(Arrays.asList(productionArray));
}
map.put("productionList", productionList);
}
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