service和region增加字典id过滤;

导出修改注释添加到对应cell
This commit is contained in:
duandongmei
2018-09-28 14:29:28 +08:00
parent 8debf0d38d
commit d96be667cd
2 changed files with 45 additions and 1 deletions

View File

@@ -202,6 +202,28 @@ public class DictUtils {
}
return dictList;
}
/**
* 功能业务字典,业务信息
* @param dictId
* @return
*/
public static FunctionServiceDict getFunctionServiceDict(Integer dictId){
FunctionServiceDict serviceDict=null;
List<FunctionServiceDict> allDictList = (List<FunctionServiceDict>)CacheUtils.get(Constants.CACHE_FUNCTION_SERVICE_DICT);
List<FunctionServiceDict> dictList = new ArrayList();
if(StringUtil.isEmpty(allDictList)){
FunctionServiceDict entity = new FunctionServiceDict();
allDictList = functionServiceDictDao.getList(entity);
CacheUtils.put(Constants.CACHE_FUNCTION_SERVICE_DICT, allDictList);
}
for(FunctionServiceDict entity:allDictList){
if(entity.getDictId().equals(dictId)){
serviceDict=entity;
break;
}
}
return serviceDict;
}
/**
* 功能业务字典,获取相应功能菜单对应的业务信息
* @param functionId
@@ -238,6 +260,28 @@ public class DictUtils {
}
return dictList;
}
/**
* 功能配置域字典,获取配置域信息
* @param dictId
* @return
*/
public static FunctionRegionDict getFunctionRegionDict(Integer dictId){
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.getDictId().equals(dictId)){
regionDict=entity;
break;
}
}
return regionDict;
}
/**
* 功能配置域字典,获取相应功能菜单对应的配置域信息
* @param functionId