mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
为空不从缓存查询
This commit is contained in:
parent
cf66216f3e
commit
15f41ce54a
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user