Browse Source

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

developing
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;
for (Field field : defaultFieldList) {
while (customFiledMap.containsKey(index)) {
Field customFiled = customFiledMap.get(index);
customFiledMap.remove(index);
if (!initOneColumnProperty(holder, index, customFiledMap.get(index), Boolean.TRUE)) {
if (!initOneColumnProperty(holder, index, customFiled, Boolean.TRUE)) {
index++;
}
}

Loading…
Cancel
Save