diff --git a/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java b/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java index 9b2d0ff..9cbfc41 100644 --- a/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java +++ b/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java @@ -25,7 +25,7 @@ public class WeatherDomainImpl implements IWeatherDomain { private WeatherProperties weatherProperties; @Override -// @Cacheable(value = DeviceCacheConfig.WEATHER_CACHE, key = "#dockerDeviceIotId", unless = "#result == null") + @Cacheable(value = DeviceCacheConfig.WEATHER_CACHE, key = "#dockerDeviceIotId", unless = "#result == null") public Weather weatherInfo(String lat, String lon, String dockerDeviceIotId) { log.info("开始获取天气信息 - lat: {}, lon: {}", lat, lon);