|
|
@@ -115,7 +115,11 @@ public class ExportBase { |
|
|
|
}
|
|
|
|
// 首先判断Excel 可能一下特殊数据用户回自定义处理
|
|
|
|
if (field.getAnnotation(Excel.class) != null) {
|
|
|
|
excelParams.add(createExcelExportEntity(field, targetId, pojoClass, getMethods));
|
|
|
|
Excel excel = field.getAnnotation(Excel.class);
|
|
|
|
String name=PoiPublicUtil.getValueByTargetId(excel.name(), targetId, null);
|
|
|
|
if(StringUtils.isNotBlank(name)){
|
|
|
|
excelParams.add(createExcelExportEntity(field, targetId, pojoClass, getMethods));
|
|
|
|
}
|
|
|
|
} else if (PoiPublicUtil.isCollection(field.getType())) {
|
|
|
|
ExcelCollection excel = field.getAnnotation(ExcelCollection.class);
|
|
|
|
ParameterizedType pt = (ParameterizedType) field.getGenericType();
|
|
|
|