Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 02c17e9c
authored
Dec 18, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改统计数据返回格式
1 parent
74da30e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
src/main/java/com/glsx/controller/IndexController.java
src/main/java/com/glsx/controller/IndexController.java
View file @
02c17e9
...
@@ -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
(
statistic
Map
);
return
R
.
ok
().
data
(
statistic
List
);
}
}
@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
(
statistic
Map
);
return
R
.
ok
().
data
(
statistic
List
);
}
}
@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
(
statistic
Map
);
return
R
.
ok
().
data
(
statistic
List
);
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment