修正功能业务、配置域字典缓存设置

This commit is contained in:
zhangwei
2018-05-19 12:23:06 +08:00
parent bee5dd6c05
commit daac8054cb

View File

@@ -187,10 +187,10 @@ public class DictUtils {
if(StringUtil.isEmpty(allDictList)){
FunctionServiceDict entity = new FunctionServiceDict();
allDictList = functionServiceDictDao.getList(entity);
CacheUtils.put(Constants.CACHE_FUNCTION_SERVICE_DICT, dictList);
CacheUtils.put(Constants.CACHE_FUNCTION_SERVICE_DICT, allDictList);
}
for(FunctionServiceDict entity:allDictList){
if(entity.getFunctionId()==functionId){
if(entity.getFunctionId().equals(functionId)){
dictList.add(entity);
}
}
@@ -207,10 +207,10 @@ public class DictUtils {
if(StringUtil.isEmpty(allDictList)){
FunctionRegionDict entity = new FunctionRegionDict();
allDictList = functionRegionDictDao.getList(entity);
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, dictList);
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, allDictList);
}
for(FunctionRegionDict entity:allDictList){
if(entity.getFunctionId()==functionId){
if(entity.getFunctionId().equals(functionId)){
dictList.add(entity);
}
}