设备缓存增加物模型ID

This commit is contained in:
谷成伟 2024-11-04 10:33:52 +08:00
parent 52f51bf88b
commit ee51b3d6a9
2 changed files with 21 additions and 1 deletions

View File

@ -13,7 +13,24 @@ public interface EquipmentCache {
* @return List<DeviceInfoCache>
*/
public List<DeviceInfoCache> getDevicesCache();
/**
* 刷新指定设备缓存
* @param deviceId
*/
public void refreshDeviceCache(Long deviceId);
/**
* 通过设备Code获取设备缓存信息
* @param deviceCode
* @return
*/
DeviceInfoCache getDeviceInfoCache(String deviceCode);
/**
* 通过设备ID获取设备缓存信息
* @param deviceId
* @return
*/
DeviceInfoCache getDeviceInfoCache(Long deviceId);
}

View File

@ -57,7 +57,10 @@ public class EquipmentCacheImpl implements EquipmentCache {
}
/**
* 获取设备缓存列表
* @return List<DeviceInfoCache>
*/
@Override
public List<DeviceInfoCache> getDevicesCache() {
return Collections.unmodifiableList(deviceInfoCaches);