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 dede0bef
authored
Dec 19, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改ICE接口调用参数 yangll
1 parent
e4e81072
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiService.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiServiceImpl.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiService.java
View file @
dede0be
...
...
@@ -3,5 +3,5 @@ package cn.com.glsx.openplatform.service;
import
java.util.Map
;
public
interface
IceOpenApiService
{
Map
<
String
,
Integer
>
getDataView
(
int
us
erId
,
int
deviceType
);
Map
<
String
,
Integer
>
getDataView
(
int
custom
erId
,
int
deviceType
);
}
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiServiceImpl.java
View file @
dede0be
...
...
@@ -24,7 +24,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
private
PlatformUserMapper
userMapper
;
@Override
public
Map
<
String
,
Integer
>
getDataView
(
int
us
erId
,
int
deviceType
)
{
public
Map
<
String
,
Integer
>
getDataView
(
int
custom
erId
,
int
deviceType
)
{
HashMap
<
String
,
Integer
>
hashMap
=
new
HashMap
<>();
String
deviceTypeStr
;
// 设备类型 1 模组 2 核心板 3 完整板
...
...
@@ -42,7 +42,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
deviceTypeStr
=
""
;
}
int
customerId
=
userMapper
.
getCustomerId
(
userId
);
//
int customerId = userMapper.getCustomerId(userId);
int
deviceCount
=
deviceMapper
.
getDeviceCountByCustomerId
(
customerId
,
deviceTypeStr
);
int
userCount
=
userMapper
.
getUserCountByCustomerId
(
customerId
);
int
acticveDeviceCount
=
deviceMapper
.
getacticveDeviceCountByCustomerId
(
customerId
,
deviceTypeStr
);
...
...
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