Browse Source

modify mistake error key

pull/3184/head
gongxuanzhang 2 years ago
parent
commit
7841d72f07
  1. 6
      easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java

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

@ -341,13 +341,11 @@ public class ClassUtils {
// The current field needs to be ignored
if (writeHolder.ignore(field.getFieldName(), entry.getKey())) {
if (ignoreSet != null) {
ignoreSet.add(field.getFieldName());
}
ignoreSet.add(field.getFieldName());
indexFieldMap.remove(index);
} else {
// Mandatory sorted fields
if (ignoreSet.contains(key)) {
if (indexFieldMap.containsKey(key)) {
tempSortedFieldMapp.put(key, field);
} else {
// Need to reorder automatically

Loading…
Cancel
Save