Commit 02c17e9c by tyfanchz

修改统计数据返回格式

1 parent 74da30e3
...@@ -3,7 +3,6 @@ package com.glsx.controller; ...@@ -3,7 +3,6 @@ package com.glsx.controller;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import cn.com.glsx.openplatform.service.ApiCallMgrService; import cn.com.glsx.openplatform.service.ApiCallMgrService;
import cn.com.glsx.openplatform.service.AppDownloadMgrService; import cn.com.glsx.openplatform.service.AppDownloadMgrService;
import cn.com.glsx.openplatform.service.CustomerMgrService; import cn.com.glsx.openplatform.service.CustomerMgrService;
...@@ -112,22 +111,22 @@ public class IndexController { ...@@ -112,22 +111,22 @@ public class IndexController {
@RequestMapping(value = "/getUcDeviceActivationStatistic", method = RequestMethod.GET) @RequestMapping(value = "/getUcDeviceActivationStatistic", method = RequestMethod.GET)
public R getUcDeviceActivationStatistic(@RequestParam String customerName) { public R getUcDeviceActivationStatistic(@RequestParam String customerName) {
Map<String, Long> statisticMap = this.indexService List<Map<String, Object>> statisticList = this.indexService
.getUcDeviceActivationStatistic(customerName); .getUcDeviceActivationStatistic(customerName);
return R.ok().data(statisticMap); return R.ok().data(statisticList);
} }
@RequestMapping(value = "/getUcUserActivityStatistic", method = RequestMethod.GET) @RequestMapping(value = "/getUcUserActivityStatistic", method = RequestMethod.GET)
public R getUcUserActivityStatistic(@RequestParam String customerName) { public R getUcUserActivityStatistic(@RequestParam String customerName) {
Map<String, Long> statisticMap = this.indexService List<Map<String, Object>> statisticList = this.indexService
.getUcUserActivityStatistic(customerName); .getUcUserActivityStatistic(customerName);
return R.ok().data(statisticMap); return R.ok().data(statisticList);
} }
@RequestMapping(value = "/getUcAppDownloadStatistic", method = RequestMethod.GET) @RequestMapping(value = "/getUcAppDownloadStatistic", method = RequestMethod.GET)
public R getUcAppDownloadStatistic(@RequestParam String customerName) { public R getUcAppDownloadStatistic(@RequestParam String customerName) {
Map<String, Long> statisticMap = this.indexService List<Map<String, Object>> statisticList = this.indexService
.getUcAppDownloadStatistic(customerName); .getUcAppDownloadStatistic(customerName);
return R.ok().data(statisticMap); return R.ok().data(statisticList);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!