Commit 63e007676125a3aa518c2542b24c93b9ae9dde3a
1 parent
e55872fa
修复queryTableDictByKeys与queryTableDictTextByKey存在redis key冲突的情况
Showing
2 changed files
with
2 additions
and
1 deletions
jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/constant/CacheConstant.java
@@ -15,6 +15,7 @@ public interface CacheConstant { | @@ -15,6 +15,7 @@ public interface CacheConstant { | ||
15 | * 表字典信息缓存 | 15 | * 表字典信息缓存 |
16 | */ | 16 | */ |
17 | public static final String SYS_DICT_TABLE_CACHE = "sys:cache:dictTable"; | 17 | public static final String SYS_DICT_TABLE_CACHE = "sys:cache:dictTable"; |
18 | + public static final String SYS_DICT_TABLE_BY_KEYS_CACHE = SYS_DICT_TABLE_CACHE + "ByKeys"; | ||
18 | 19 | ||
19 | /** | 20 | /** |
20 | * 数据权限配置缓存 | 21 | * 数据权限配置缓存 |
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDictServiceImpl.java
@@ -138,7 +138,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl | @@ -138,7 +138,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl | ||
138 | * @return | 138 | * @return |
139 | */ | 139 | */ |
140 | @Override | 140 | @Override |
141 | - @Cacheable(value = CacheConstant.SYS_DICT_TABLE_CACHE) | 141 | + @Cacheable(value = CacheConstant.SYS_DICT_TABLE_BY_KEYS_CACHE) |
142 | public List<String> queryTableDictByKeys(String table, String text, String code, String keys) { | 142 | public List<String> queryTableDictByKeys(String table, String text, String code, String keys) { |
143 | if(oConvertUtils.isEmpty(keys)){ | 143 | if(oConvertUtils.isEmpty(keys)){ |
144 | return null; | 144 | return null; |