|
|
|
@ -1434,6 +1434,10 @@ public class CommonServiceImpl implements CommonService { |
|
|
|
return SimpleDataResponse.fail(ResponseCode.MSG_ERROR, "Apikey is invalid", new ArrayList<>()); |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, Object> companySearchMap = new HashMap<>(); |
|
|
|
companySearchMap.put("apikey", apikey); |
|
|
|
ApikeyInfo2 selfCompanyInfo = basicCompanyMapperExt.getAuroraInfoByApikey(companySearchMap); |
|
|
|
|
|
|
|
DataSourceContextHolder.clearCurrentDataSourceKey(); |
|
|
|
DataSourceContextHolder.setCurrentDataSourceKey(Constants.DATASOURCE_PREFIX+ apikeyInfo.getId()); |
|
|
|
|
|
|
|
@ -1473,6 +1477,7 @@ public class CommonServiceImpl implements CommonService { |
|
|
|
if (deviceIdList.size() > 0) { |
|
|
|
Map<String, Object> paramMap = new HashMap<>(); |
|
|
|
paramMap.put("deviceIdList", deviceIdList); |
|
|
|
paramMap.put("companyId", selfCompanyInfo.getId()); |
|
|
|
dpfDeviceInfoVOs = deviceInfoMapperExt.getRiliDeviceInfo(paramMap); |
|
|
|
|
|
|
|
// Retrieve the set of DeviceId from DeviceInfoVOs
|
|
|
|
|