(1)修复导入common.js报错
(2)app策略导入提交
This commit is contained in:
@@ -282,6 +282,28 @@ public class DictUtils {
|
||||
}
|
||||
return regionDict;
|
||||
}
|
||||
/**
|
||||
* 功能配置域字典,获取配置域信息
|
||||
* @param dictId
|
||||
* @return
|
||||
*/
|
||||
public static FunctionRegionDict getFunctionRegionDictByRegionCode(Integer functionId,Integer regionCode){
|
||||
FunctionRegionDict regionDict=null;
|
||||
List<FunctionRegionDict> allDictList = (List<FunctionRegionDict>)CacheUtils.get(Constants.CACHE_FUNCTION_REGION_DICT);
|
||||
List<FunctionRegionDict> dictList = new ArrayList();
|
||||
if(StringUtil.isEmpty(allDictList)){
|
||||
FunctionRegionDict entity = new FunctionRegionDict();
|
||||
allDictList = functionRegionDictDao.getList(entity);
|
||||
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, allDictList);
|
||||
}
|
||||
for(FunctionRegionDict entity:allDictList){
|
||||
if(entity.getConfigRegionCode().equals(regionCode)&&entity.getFunctionId().equals(functionId)){
|
||||
regionDict=entity;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return regionDict;
|
||||
}
|
||||
/**
|
||||
* 功能配置域字典,获取相应功能菜单对应的配置域信息
|
||||
* @param functionId
|
||||
|
||||
Reference in New Issue
Block a user