Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e422a156
authored
Dec 18, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改统计数据返回格式
1 parent
80b1ba28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
19 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IndexService.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IndexServiceImpl.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IndexService.java
View file @
e422a15
package
cn
.
com
.
glsx
.
openplatform
.
service
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -12,9 +13,9 @@ import java.util.Map;
public
interface
IndexService
{
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
);
Map
<
String
,
Long
>
getUcDeviceActivationStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>
>
getUcDeviceActivationStatistic
(
String
customerName
);
Map
<
String
,
Long
>
getUcUserActivityStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>
>
getUcUserActivityStatistic
(
String
customerName
);
Map
<
String
,
Long
>
getUcAppDownloadStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>
>
getUcAppDownloadStatistic
(
String
customerName
);
}
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IndexServiceImpl.java
View file @
e422a15
...
...
@@ -5,7 +5,6 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
cn.com.glsx.openplatform.mapper.PlatformAppDownloadMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformDeviceMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformUserMapper
;
...
...
@@ -48,36 +47,30 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public
Map
<
String
,
Long
>
getUcDeviceActivationStatistic
(
String
customerName
)
{
Map
<
String
,
Long
>
statisticMap
;
List
<
Map
<
String
,
Object
>>
columnList
=
this
.
deviceMapper
.
getDeviceActivationStatistic
(
public
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
deviceMapper
.
getDeviceActivationStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
statisticMap
=
this
.
convertColumnToMap
(
columnList
);
return
statistic
Map
;
return
statistic
List
;
}
@Override
public
Map
<
String
,
Long
>
getUcUserActivityStatistic
(
String
customerName
)
{
Map
<
String
,
Long
>
statisticMap
;
List
<
Map
<
String
,
Object
>>
columnList
=
this
.
userMapper
.
getUserActivityStatistic
(
public
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
userMapper
.
getUserActivityStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
statisticMap
=
this
.
convertColumnToMap
(
columnList
);
return
statistic
Map
;
return
statistic
List
;
}
@Override
public
Map
<
String
,
Long
>
getUcAppDownloadStatistic
(
String
customerName
)
{
Map
<
String
,
Long
>
statisticMap
;
List
<
Map
<
String
,
Object
>>
columnList
=
this
.
appDownloadMapper
.
getAppDownloadStatistic
(
public
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
appDownloadMapper
.
getAppDownloadStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
statisticMap
=
this
.
convertColumnToMap
(
columnList
);
return
statistic
Map
;
return
statistic
List
;
}
private
Date
getStatisticStartTime
()
{
...
...
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