数据存储去掉reis

This commit is contained in:
wanxiaoli 2025-10-20 18:50:10 +08:00
parent f3ea8ebb0d
commit e6f2dc007a
3 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ public class SystemConfigService {
* *
* @return 系统设置 * @return 系统设置
*/ */
@Cacheable(key = "'dto'") // @Cacheable(key = "'dto'")
public SystemConfigDTO getSystemConfig() { public SystemConfigDTO getSystemConfig() {
SystemConfigDTO systemConfigDTO = new SystemConfigDTO(); SystemConfigDTO systemConfigDTO = new SystemConfigDTO();
List<SystemConfig> systemConfigList = systemConfigMapper.findAll(); List<SystemConfig> systemConfigList = systemConfigMapper.findAll();

View File

@ -47,7 +47,7 @@ public class StorageSourceConfigService {
* *
* @return 存储源拓展配置列表 * @return 存储源拓展配置列表
*/ */
@Cacheable(key = "#storageId", unless = "#result == null or #result.size() == 0") // @Cacheable(key = "#storageId", unless = "#result == null or #result.size() == 0")
public List<StorageSourceConfig> selectStorageConfigByStorageId(Integer storageId) { public List<StorageSourceConfig> selectStorageConfigByStorageId(Integer storageId) {
return storageSourceConfigMapper.findByStorageIdOrderById(storageId); return storageSourceConfigMapper.findByStorageIdOrderById(storageId);
} }

View File

@ -104,7 +104,7 @@ public class StorageSourceService {
* *
* @return 存储源设置 * @return 存储源设置
*/ */
@Cacheable(key = "#id", unless = "#result == null") // @Cacheable(key = "#id", unless = "#result == null")
public StorageSource findById(Integer id) { public StorageSource findById(Integer id) {
return storageSourceMapper.selectById(id); return storageSourceMapper.selectById(id);
} }
@ -120,7 +120,7 @@ public class StorageSourceService {
* *
* @return 存储源信息 * @return 存储源信息
*/ */
@Cacheable(key = "#storageKey", unless = "#result == null") // @Cacheable(key = "#storageKey", unless = "#result == null")
public StorageSource findByStorageKey(String storageKey) { public StorageSource findByStorageKey(String storageKey) {
return storageSourceMapper.findByStorageKey(storageKey); return storageSourceMapper.findByStorageKey(storageKey);
} }