Commit 4f3681a6 authored by Quxl's avatar Quxl

x

parent 1996d837
...@@ -24,7 +24,7 @@ public class CountryServiceImpl implements CountryService { ...@@ -24,7 +24,7 @@ public class CountryServiceImpl implements CountryService {
List<Map<String, String>> list = new ArrayList<Map<String, String>>(); List<Map<String, String>> list = new ArrayList<Map<String, String>>();
for(Object obj: JSON.parseArray(json)) { for(Object obj: JSON.parseArray(json)) {
Map<?, ?> objMap = (Map<?, ?>)obj; Map<?, ?> objMap = (Map<?, ?>)obj;
list.add(objMap.entrySet().stream().collect(Collectors.toMap((e) -> (String)e.getKey(), (e) -> (String)e.getValue()))); list.add(objMap.entrySet().stream().collect(Collectors.toMap((e) -> (String)e.getValue(), (e) -> (String)e.getKey())));
} }
return list; 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