Pre Merge pull request !372 from 伤枫落月/master

pull/372/MERGE
伤枫落月 1 year ago committed by Gitee
commit 53a009d5e0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -1290,9 +1290,6 @@ public class ExcelUtil<T>
Excel attr = field.getAnnotation(Excel.class);
if (attr != null && (attr.type() == Type.ALL || attr.type() == type))
{
field.setAccessible(true);
fields.add(new Object[] { field, attr });
}
if (Collection.class.isAssignableFrom(field.getType()))
{
subMethod = getSubMethod(field.getName(), clazz);
@ -1300,6 +1297,14 @@ public class ExcelUtil<T>
Class<?> subClass = (Class<?>) pt.getActualTypeArguments()[0];
this.subFields = FieldUtils.getFieldsListWithAnnotation(subClass, Excel.class);
}
else
{
field.setAccessible(true);
fields.add(new Object[] { field, attr });
}
}
}
// 多注解

Loading…
Cancel
Save