|
|
@@ -71,14 +71,6 @@ public class DeviceconnCacheService {
|
|
|
public IotDeviceconn getIotDeviceConnByDevconnBid(String devconnBid) {
|
|
|
log.info("【设备连接缓存】查询设备连接信息,设备连接标识为:{}", devconnBid);
|
|
|
IotDeviceconn iotDeviceconn = deviceConnMap.get(devconnBid);
|
|
|
- if (iotDeviceconn == null) {
|
|
|
- log.error("【设备连接缓存】查询设备连接信息失败,设备连接标识为:{}", devconnBid);
|
|
|
- iotDeviceconn = businessCoreService.selectDevConnByConnId(devconnBid);
|
|
|
- if (iotDeviceconn == null) {
|
|
|
- throw new IotBizException(IotErrorCode.INVALID_DEVICE_CONN_BID);
|
|
|
- }
|
|
|
- setCache(iotDeviceconn);
|
|
|
- }
|
|
|
return iotDeviceconn;
|
|
|
}
|
|
|
|
|
|
@@ -134,6 +126,7 @@ public class DeviceconnCacheService {
|
|
|
* 【http】保存租户的http通用连接信息
|
|
|
*/
|
|
|
public void setHttpCommonConnectionByDevtypeCode(String devconnBid, String devtypeCode) {
|
|
|
+ log.info(devconnBid+""+devtypeCode);
|
|
|
httpDeviceConnBidListMap.computeIfAbsent(devtypeCode, k -> ConcurrentHashMap.newKeySet()).add(devconnBid);
|
|
|
}
|
|
|
|