Commit cfc6c3b9 authored by Quxl's avatar Quxl

x

parent a8910596
...@@ -94,9 +94,9 @@ public class BrandController { ...@@ -94,9 +94,9 @@ public class BrandController {
for(Map<String,Object> item:listMap) { for(Map<String,Object> item:listMap) {
String first=((String)item.get("PinyinCode")).substring(0, 1).toUpperCase(); String first=((String)item.get("PinyinCode")).substring(0, 1).toUpperCase();
Map<String,String> BrandMap=new HashMap<>(); Map<String,String> BrandMap=new HashMap<>();
BrandMap.put("BrandNO", (String)item.get("BrandNO")); BrandMap.put("sBrandID", (String)item.get("sBrandID"));
BrandMap.put("BrandName", (String)item.get("BrandName")); BrandMap.put("sBrandName", (String)item.get("sBrandName"));
BrandMap.put("ImgPath", (String)item.get("ImgPath")); BrandMap.put("sLogoUrl", (String)item.get("sLogoUrl"));
if(first.matches(reg)) { if(first.matches(reg)) {
if(pinMap.containsKey(first)) { if(pinMap.containsKey(first)) {
pinMap.get(first).add(BrandMap); pinMap.get(first).add(BrandMap);
...@@ -116,7 +116,7 @@ public class BrandController { ...@@ -116,7 +116,7 @@ public class BrandController {
List<Map<String,Object>> returnList=new ArrayList<>(); List<Map<String,Object>> returnList=new ArrayList<>();
for (Entry<String, List> entry : pinMap.entrySet()) { for (Entry<String, List> entry : pinMap.entrySet()) {
Map<String,Object> returnMap=new HashMap<>(); Map<String,Object> returnMap=new HashMap<>();
returnMap.put("PyCode", entry.getKey()); returnMap.put("sPinyinCode", entry.getKey());
returnMap.put("BrandList", entry.getValue().toArray()); returnMap.put("BrandList", entry.getValue().toArray());
returnList.add(returnMap); returnList.add(returnMap);
} }
......
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