修正功能业务、配置域字典缓存设置
This commit is contained in:
@@ -187,10 +187,10 @@ public class DictUtils {
|
|||||||
if(StringUtil.isEmpty(allDictList)){
|
if(StringUtil.isEmpty(allDictList)){
|
||||||
FunctionServiceDict entity = new FunctionServiceDict();
|
FunctionServiceDict entity = new FunctionServiceDict();
|
||||||
allDictList = functionServiceDictDao.getList(entity);
|
allDictList = functionServiceDictDao.getList(entity);
|
||||||
CacheUtils.put(Constants.CACHE_FUNCTION_SERVICE_DICT, dictList);
|
CacheUtils.put(Constants.CACHE_FUNCTION_SERVICE_DICT, allDictList);
|
||||||
}
|
}
|
||||||
for(FunctionServiceDict entity:allDictList){
|
for(FunctionServiceDict entity:allDictList){
|
||||||
if(entity.getFunctionId()==functionId){
|
if(entity.getFunctionId().equals(functionId)){
|
||||||
dictList.add(entity);
|
dictList.add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -207,10 +207,10 @@ public class DictUtils {
|
|||||||
if(StringUtil.isEmpty(allDictList)){
|
if(StringUtil.isEmpty(allDictList)){
|
||||||
FunctionRegionDict entity = new FunctionRegionDict();
|
FunctionRegionDict entity = new FunctionRegionDict();
|
||||||
allDictList = functionRegionDictDao.getList(entity);
|
allDictList = functionRegionDictDao.getList(entity);
|
||||||
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, dictList);
|
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, allDictList);
|
||||||
}
|
}
|
||||||
for(FunctionRegionDict entity:allDictList){
|
for(FunctionRegionDict entity:allDictList){
|
||||||
if(entity.getFunctionId()==functionId){
|
if(entity.getFunctionId().equals(functionId)){
|
||||||
dictList.add(entity);
|
dictList.add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user