Commit 48f263f1 by 张新旗

前进前进,继续上代码

parent a0410832
...@@ -612,6 +612,15 @@ public class WeixinServiceImpl { ...@@ -612,6 +612,15 @@ public class WeixinServiceImpl {
city.put("value",shop1.getCity()); city.put("value",shop1.getCity());
city.put("name",JSONPath.read(areaData,String.format(cityString,province,shop1.getCity()))); city.put("name",JSONPath.read(areaData,String.format(cityString,province,shop1.getCity())));
cityChild.add(city); cityChild.add(city);
JSONObject zone =new JSONObject();
zone.put("value",shop1.getZone());
zone.put("name",JSONPath.read(areaData,String.format(zoneString,province,shop1.getCity(),shop1.getZone())));
List<Shop> shopList = new ArrayList<>();
shopList.add(shop1);
zone.put("shops",shopList);
List<JSONObject> zones = new ArrayList<>();
zones.add(zone);
city.put("children",zones);
} }
} }
......
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