Browse Source

reverse import

pull/3186/head
gongxuanzhang 2 years ago
parent
commit
65aeb15089
  1. 4
      easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java

4
easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java

@ -106,7 +106,7 @@ public class ClassUtils {
ConfigurationHolder configurationHolder) { ConfigurationHolder configurationHolder) {
Class<?> clazz = null; Class<?> clazz = null;
if (dataMap instanceof BeanMap) { if (dataMap instanceof BeanMap) {
Object bean = ((BeanMap) dataMap).getBean(); Object bean = ((BeanMap)dataMap).getBean();
if (bean != null) { if (bean != null) {
clazz = bean.getClass(); clazz = bean.getClass();
} }
@ -324,7 +324,7 @@ public class ClassUtils {
return fieldCache; return fieldCache;
} }
WriteHolder writeHolder = (WriteHolder) configurationHolder; WriteHolder writeHolder = (WriteHolder)configurationHolder;
boolean needIgnore = !CollectionUtils.isEmpty(writeHolder.excludeColumnFieldNames()) boolean needIgnore = !CollectionUtils.isEmpty(writeHolder.excludeColumnFieldNames())
|| !CollectionUtils.isEmpty(writeHolder.excludeColumnIndexes()) || !CollectionUtils.isEmpty(writeHolder.excludeColumnIndexes())

Loading…
Cancel
Save