Commit cfc6c3b9 authored by Quxl's avatar Quxl

x

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