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 // The current field needs to be ignored
if (writeHolder.ignore(field.getFieldName(), entry.getKey())) { if (writeHolder.ignore(field.getFieldName(), entry.getKey())) {
if (ignoreSet != null) { ignoreSet.add(field.getFieldName());
ignoreSet.add(field.getFieldName());
}
indexFieldMap.remove(index); indexFieldMap.remove(index);
} else { } else {
// Mandatory sorted fields // Mandatory sorted fields
if (ignoreSet.contains(key)) { if (indexFieldMap.containsKey(key)) {
tempSortedFieldMapp.put(key, field); tempSortedFieldMapp.put(key, field);
} else { } else {
// Need to reorder automatically // Need to reorder automatically

Loading…
Cancel
Save