Pre Merge pull request !412 from 初衷/4.X

This commit is contained in:
初衷 2023-08-14 10:06:56 +00:00 committed by Gitee
commit bf7fd7eb2f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -98,7 +98,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);