From f985429209b2a99610fd737878ac176a02f29e5a Mon Sep 17 00:00:00 2001 From: baohanddd Date: Mon, 11 Jul 2016 15:45:07 +0800 Subject: [PATCH] add statistics(map) common index --- .../lyms/platform/operate/web/controller/StatisticsController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java index 669e1f8..0aad2e7 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java @@ -52,7 +52,8 @@ public class StatisticsController extends BaseController { * @param pid 省ID、地区ID */ @RequestMapping(value = "/total/index", method = RequestMethod.GET) - public void getTotalIndex(HttpServletResponse response, @RequestParam(value = "type")Integer type, @RequestParam(value = "pid", required = false)String pid) { + public void getTotalIndex(HttpServletResponse response, @RequestParam(value = "type")Integer type, @RequestParam(value = "pid", required = false)String pid, + @RequestParam(value = "provinceId", required = false)String provinceId) { Map result= new HashMap(); Map colormap = new HashMap<>(); colormap.put("紫色", "#be75ff"); @@ -729,6 +730,7 @@ public class StatisticsController extends BaseController { result.put("type", 3); + result.put("provinceId", provinceId); result.put("cityName", cityName); result.put("cityPinyin", cityPinyinMap.get(cityName.replace("市","").replace("省",""))); result.put("kvData", kvData); -- 1.8.3.1