From 15f41ce54a1e030d4315ec8056d5ecfb44dfd0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E8=A1=B7?= <2370392733@qq.com> Date: Mon, 14 Aug 2023 17:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E4=B8=8D=E4=BB=8E=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/system/service/impl/SysOssServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java index c36bfa274..2df5a859f 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java @@ -94,7 +94,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService { return lqw; } - @Cacheable(cacheNames = CacheNames.SYS_OSS, key = "#ossId") + @Cacheable(cacheNames = CacheNames.SYS_OSS, key = "#ossId", condition = "#ossId!=null") @Override public SysOssVo getById(Long ossId) { return baseMapper.selectVoById(ossId);