Browse Source

模板介绍

4.1.3.A
jueyue 9 years ago
parent
commit
eee4b80450
2 changed files with 5 additions and 2 deletions
  1. +2
    -0
      README.md
  2. +3
    -2
      easypoi-base/src/main/java/org/jeecgframework/poi/excel/export/template/ExcelExportOfTemplateUtil.java

+ 2
- 0
README.md View File

@@ -121,6 +121,8 @@ EasyPoi 文档
[EasyPoi-新版自定义导出样式类型](http://note.youdao.com/share/?id=7937a9fe15f1016b8f39bf813be894f8&type=note)
[EasyPoi-模板导出的语法介绍](http://blog.csdn.net/qjueyue/article/details/45231801)
---------------------------
EasyPoi导出实例


+ 3
- 2
easypoi-base/src/main/java/org/jeecgframework/poi/excel/export/template/ExcelExportOfTemplateUtil.java View File

@@ -240,8 +240,9 @@ public final class ExcelExportOfTemplateUtil extends ExcelExportBase {
while (index <= sheet.getLastRowNum()) {
row = sheet.getRow(index++);
for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) {
if (!tempCreateCellSet.contains(row.getRowNum() + "_"
+ row.getCell(i).getColumnIndex())) {
if (row.getCell(i) != null
&& !tempCreateCellSet.contains(row.getRowNum() + "_"
+ row.getCell(i).getColumnIndex())) {
setValueForCellByMap(row.getCell(i), map);
}
}


Loading…
Cancel
Save