service和region增加字典id过滤;
导出修改注释添加到对应cell
This commit is contained in:
@@ -202,6 +202,28 @@ public class DictUtils {
|
|||||||
}
|
}
|
||||||
return dictList;
|
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
|
* @param functionId
|
||||||
@@ -238,6 +260,28 @@ public class DictUtils {
|
|||||||
}
|
}
|
||||||
return dictList;
|
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
|
* @param functionId
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ public class ExportExcel {
|
|||||||
if (ss.length==2){
|
if (ss.length==2){
|
||||||
cell.setCellValue(ss[0]);
|
cell.setCellValue(ss[0]);
|
||||||
Comment comment = this.sheet.createDrawingPatriarch().createCellComment(
|
Comment comment = this.sheet.createDrawingPatriarch().createCellComment(
|
||||||
new XSSFClientAnchor(0, 0, 0, 0, (short) 3, 3, (short) 5, 6));
|
new XSSFClientAnchor(0, 0, 0, 0, (short) i, 0, (short) i+4, 3));
|
||||||
comment.setString(new XSSFRichTextString(ss[1]));
|
comment.setString(new XSSFRichTextString(ss[1]));
|
||||||
cell.setCellComment(comment);
|
cell.setCellComment(comment);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user