Commit dede0bef by 杨林龙

修改ICE接口调用参数 yangll

1 parent e4e81072
...@@ -3,5 +3,5 @@ package cn.com.glsx.openplatform.service; ...@@ -3,5 +3,5 @@ package cn.com.glsx.openplatform.service;
import java.util.Map; import java.util.Map;
public interface IceOpenApiService { public interface IceOpenApiService {
Map<String, Integer> getDataView(int userId, int deviceType); Map<String, Integer> getDataView(int customerId, int deviceType);
} }
...@@ -24,7 +24,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService { ...@@ -24,7 +24,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
private PlatformUserMapper userMapper; private PlatformUserMapper userMapper;
@Override @Override
public Map<String, Integer> getDataView(int userId, int deviceType) { public Map<String, Integer> getDataView(int customerId, int deviceType) {
HashMap<String, Integer> hashMap = new HashMap<>(); HashMap<String, Integer> hashMap = new HashMap<>();
String deviceTypeStr; String deviceTypeStr;
// 设备类型 1 模组 2 核心板 3 完整板 // 设备类型 1 模组 2 核心板 3 完整板
...@@ -42,7 +42,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService { ...@@ -42,7 +42,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
deviceTypeStr = ""; deviceTypeStr = "";
} }
int customerId = userMapper.getCustomerId(userId); // int customerId = userMapper.getCustomerId(userId);
int deviceCount = deviceMapper.getDeviceCountByCustomerId(customerId, deviceTypeStr); int deviceCount = deviceMapper.getDeviceCountByCustomerId(customerId, deviceTypeStr);
int userCount = userMapper.getUserCountByCustomerId(customerId); int userCount = userMapper.getUserCountByCustomerId(customerId);
int acticveDeviceCount = deviceMapper.getacticveDeviceCountByCustomerId(customerId, deviceTypeStr); int acticveDeviceCount = deviceMapper.getacticveDeviceCountByCustomerId(customerId, deviceTypeStr);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!