mirror of
https://gitee.com/iteaj/iboot.git
synced 2026-08-31 01:40:54 +08:00
修改获取设备列表的方式
This commit is contained in:
+3
-3
@@ -243,9 +243,9 @@ public class DeviceServiceImpl extends BaseServiceImpl<DeviceMapper, Device> imp
|
||||
children.values().forEach(iotCacheManager::removeDevice);
|
||||
|
||||
// 缓存新的子设备
|
||||
Map<String, RealtimeStatus> childMap = this.listChildDeviceStatusFromCache(newCache.getProtocolCode(), newCache.getDeviceSn());
|
||||
if(childMap != null) {
|
||||
childMap.values().forEach(iotCacheManager::cache);
|
||||
List<RealtimeStatus> childDevices = this.getBaseMapper().listDeviceStatus(newCache.getProtocolCode(), null, newCache.getDeviceSn());
|
||||
if(childDevices != null) {
|
||||
childDevices.forEach(iotCacheManager::cache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user