修改导出无数据BUG
This commit is contained in:
@@ -1232,7 +1232,7 @@ public class ExportExcel {
|
|||||||
List<Field> list=new ArrayList<Field>();
|
List<Field> list=new ArrayList<Field>();
|
||||||
// Get annotation field
|
// Get annotation field
|
||||||
//递归获取cls实体对象及父级对象的属性
|
//递归获取cls实体对象及父级对象的属性
|
||||||
getFields(list, clsMap.get(title).getClass());
|
getFields(list, clsMap.get(title));
|
||||||
if(!StringUtil.isEmpty(list)){
|
if(!StringUtil.isEmpty(list)){
|
||||||
for (Field f : list){
|
for (Field f : list){
|
||||||
ExcelField ef = f.getAnnotation(ExcelField.class);
|
ExcelField ef = f.getAnnotation(ExcelField.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user