Skip to content

Commit

Permalink
* 修改填充时,无法使用生成的模板 [Issue #1552]
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangjiaju committed Sep 17, 2021
1 parent 27b417f commit 8c95bfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,12 @@ private String prepareData(Cell cell, int rowIndex, int columnIndex, Map<String,
}
lastPrepareDataIndex = suffixIndex + 1;
}

// fix https://github.com/alibaba/easyexcel/issues/1552
// When read template, XLSX data may be in `is` labels, and set the time set in `v` label, lead to can't set
// up successfully, so all data format to empty first.
if (analysisCell != null && CollectionUtils.isNotEmpty(analysisCell.getVariableList())) {
cell.setBlank();
}
return dealAnalysisCell(analysisCell, value, rowIndex, lastPrepareDataIndex, length, firstRowCache,
preparedData);
}
Expand Down
1 change: 1 addition & 0 deletions update.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* 修复不创建对象写入数据异常 [Issue #1702](https://github.com/alibaba/easyexcel/issues/1702)
* 修复头和数据对象不一致会覆盖的问题 [Issue #1870](https://github.com/alibaba/easyexcel/issues/1870)
* 修复忽略字段后可能排序不一致的问题
* 修改填充时,无法使用生成的模板 [Issue #1552](https://github.com/alibaba/easyexcel/issues/1552)


# 2.2.11
Expand Down

0 comments on commit 8c95bfc

Please sign in to comment.