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 0ebd4daf
authored
Dec 25, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加客户名绑定字段 customerNameAuth yangll
1 parent
c1e623e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
18 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IndexService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/DeviceVo.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 @
0ebd4da
...
...
@@ -14,32 +14,32 @@ public interface IndexService {
/**
* 根据客户名获取统计数量
*
* @param customerName 客户名
* @param customerName
Auth
客户名
* @return
*/
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
);
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
Auth
);
/**
* 根据客户名获取设备激活数量
*
* @param customerName 客户名
* @param customerName
Auth
客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
Auth
);
/**
* 根据客户名获取用户在线数量
*
* @param customerName 客户名
* @param customerName
Auth
客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
Auth
);
/**
* 根据客户名获取app下载数量
*
* @param customerName 客户名
* @param customerName
Auth
客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
Auth
);
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/DeviceVo.java
View file @
0ebd4da
...
...
@@ -78,4 +78,12 @@ public class DeviceVo implements Serializable {
public
void
setActivatEndTime
(
Date
activatEndTime
)
{
this
.
activatEndTime
=
activatEndTime
;
}
public
String
getCustomerNameAuth
()
{
return
customerNameAuth
;
}
public
void
setCustomerNameAuth
(
String
customerNameAuth
)
{
this
.
customerNameAuth
=
customerNameAuth
;
}
}
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IndexServiceImpl.java
View file @
0ebd4da
...
...
@@ -35,11 +35,11 @@ public class IndexServiceImpl implements IndexService {
private
PlatformAppDownloadMapper
appDownloadMapper
;
@Override
public
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
)
{
public
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
Auth
)
{
Map
<
String
,
Integer
>
statisticMap
=
new
HashMap
<>();
int
deviceCount
=
this
.
deviceMapper
.
getDeviceCountAuth
(
customerName
);
int
userCount
=
this
.
userMapper
.
getUserCountAuth
(
customerName
);
int
appDownloadCount
=
this
.
appDownloadMapper
.
getApiCallCountAuth
(
customerName
);
int
deviceCount
=
this
.
deviceMapper
.
getDeviceCountAuth
(
customerName
Auth
);
int
userCount
=
this
.
userMapper
.
getUserCountAuth
(
customerName
Auth
);
int
appDownloadCount
=
this
.
appDownloadMapper
.
getApiCallCountAuth
(
customerName
Auth
);
statisticMap
.
put
(
"deviceCount"
,
deviceCount
);
statisticMap
.
put
(
"userCount"
,
userCount
);
...
...
@@ -48,28 +48,28 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
)
{
public
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
Auth
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
deviceMapper
.
getDeviceActivationStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
customerName
Auth
);
return
statisticList
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
)
{
public
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
Auth
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
userMapper
.
getUserActivityStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
customerName
Auth
);
return
statisticList
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
)
{
public
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
Auth
)
{
List
<
Map
<
String
,
Object
>>
statisticList
=
this
.
appDownloadMapper
.
getAppDownloadStatistic
(
this
.
getStatisticStartTime
(),
this
.
getStatisticEndTime
(),
customerName
);
customerName
Auth
);
return
statisticList
;
}
...
...
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