修复queryTableDictByKeys与queryTableDictTextByKey存在redis key冲突的情况

This commit is contained in:
tanpenggood
2020-09-02 11:59:39 +08:00
parent e55872fa4e
commit 63e0076761
2 changed files with 2 additions and 1 deletions
@@ -15,6 +15,7 @@ public interface CacheConstant {
* 表字典信息缓存
*/
public static final String SYS_DICT_TABLE_CACHE = "sys:cache:dictTable";
public static final String SYS_DICT_TABLE_BY_KEYS_CACHE = SYS_DICT_TABLE_CACHE + "ByKeys";
/**
* 数据权限配置缓存
@@ -138,7 +138,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
* @return
*/
@Override
@Cacheable(value = CacheConstant.SYS_DICT_TABLE_CACHE)
@Cacheable(value = CacheConstant.SYS_DICT_TABLE_BY_KEYS_CACHE)
public List<String> queryTableDictByKeys(String table, String text, String code, String keys) {
if(oConvertUtils.isEmpty(keys)){
return null;