We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easyexcel/src/main/java/com/alibaba/excel/write/executor/ExcelWriteAddExecutor.java
Line 157 in 665f1e2
在该行,如果在WriteSheet配置了includeIndex,并且cellIndex=0的时候,是不包含在内的时候,if (uselessData)为0,则,后面的数据都不会填充到指定的单元格中。
final ExcelWriterSheetBuilder sheetBuilder = new ExcelWriterSheetBuilder(); sheetBuilder.includeColumnIndexes(this.includeIndex()).needHead(true).head(this.head); return sheetBuilder.build();
// 该用例中所有的判断都为false boolean uselessData = !beanMap.containsKey(filedName) || beanMapHandledSet.contains(filedName) || ignoreMap.containsKey(filedName) || writeContext.currentWriteHolder().ignore(filedName, cellIndex);
相同的,因为cellIndex的自增是在if (uselessData)之后,则表示,如果该段代码出现过一次uselessData=false,则后续的数据都不会被填充。
The text was updated successfully, but these errors were encountered:
修复includeColumnIndexes不包含第列 会无法导出数据的bug #1346
includeColumnIndexes
9d60fa6
非常感谢您的意见,已经在最新版修复。
Sorry, something went wrong.
No branches or pull requests
easyexcel/src/main/java/com/alibaba/excel/write/executor/ExcelWriteAddExecutor.java
Line 157 in 665f1e2
在该行,如果在WriteSheet配置了includeIndex,并且cellIndex=0的时候,是不包含在内的时候,if (uselessData)为0,则,后面的数据都不会填充到指定的单元格中。
相同的,因为cellIndex的自增是在if (uselessData)之后,则表示,如果该段代码出现过一次uselessData=false,则后续的数据都不会被填充。
The text was updated successfully, but these errors were encountered: