Browse Source

支持根据参数自定义导出列

pull/745/head
Jiaju Zhuang 5 years ago
parent
commit
4c4599cce6
  1. 3
      src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java

3
src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java

@ -168,8 +168,9 @@ public class ExcelHeadProperty {
int index = 0; int index = 0;
for (Field field : defaultFieldList) { for (Field field : defaultFieldList) {
while (customFiledMap.containsKey(index)) { while (customFiledMap.containsKey(index)) {
Field customFiled = customFiledMap.get(index);
customFiledMap.remove(index); customFiledMap.remove(index);
if (!initOneColumnProperty(holder, index, customFiledMap.get(index), Boolean.TRUE)) { if (!initOneColumnProperty(holder, index, customFiled, Boolean.TRUE)) {
index++; index++;
} }
} }

Loading…
Cancel
Save