Skip to content

Commit

Permalink
---author:chenrui---date:2024/8/1-----for:[issues/6925]xlsx模版导出图片---
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui committed Aug 1, 2024
1 parent fe1f7e1 commit d1ba5fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ public Workbook createExcleByTemplate(TemplateExportParams params, Class<?> pojo
// 创建表格样式
setExcelExportStyler((IExcelExportStyler) teplateParams.getStyle().getConstructor(Workbook.class).newInstance(wb));
// step 3. 解析模板
//update-begin---author:chenrui ---date:20240801 for:[issues/6925]xlsx模版导出图片------------
if (wb instanceof XSSFWorkbook) {
super.type = ExcelType.XSSF;
}
//update-end---author:chenrui ---date:20240801 for:[issues/6925]xlsx模版导出图片------------
for (int i = 0, le = params.isScanAllsheet() ? wb.getNumberOfSheets() : params.getSheetNum().length; i < le; i++) {
if (params.getSheetName() != null && params.getSheetName().length > i && StringUtils.isNotEmpty(params.getSheetName()[i])) {
wb.setSheetName(i, params.getSheetName()[i]);
Expand Down
6 changes: 5 additions & 1 deletion docs/修改日志.log
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,8 @@ autopoi\src\main\java\org\jeecgframework\poi\excel\imports\CellValueServer.java
src\test\resources\templates\ExcelImportDateTest.xlsx
src\test\java\TestDateEntity.java
src\test\java\ImportExcelTest.java
---author:liusq---date:2024/7/30-----for:TV360X-1292 对象的属性为LocalDate、LocalDateTIme类型对象兼容---
---author:liusq---date:2024/7/30-----for:TV360X-1292 对象的属性为LocalDate、LocalDateTIme类型对象兼容---

---author:chenrui---date:2024/8/1-----for:[issues/6925]xlsx模版导出图片---
src/main/java/org/jeecgframework/poi/excel/export/template/ExcelExportOfTemplateUtil.java
---author:chenrui---date:2024/8/1-----for:[issues/6925]xlsx模版导出图片---

0 comments on commit d1ba5fa

Please sign in to comment.