@Service public class EruptExcelService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
XLS_FORMAT |
static String |
XLSX_FORMAT |
Constructor and Description |
---|
EruptExcelService() |
Modifier and Type | Method and Description |
---|---|
org.apache.poi.ss.usermodel.Workbook |
createExcelTemplate(EruptModel eruptModel) |
List<com.google.gson.JsonObject> |
excelToEruptObject(EruptModel eruptModel,
org.apache.poi.ss.usermodel.Workbook workbook) |
org.apache.poi.ss.usermodel.Workbook |
exportExcel(EruptModel eruptModel,
Page page)
excel导出,展示的格式和view表格一致
|
String |
getStringCellValue(org.apache.poi.ss.usermodel.Cell cell) |
public static final String XLS_FORMAT
public static final String XLSX_FORMAT
public org.apache.poi.ss.usermodel.Workbook exportExcel(EruptModel eruptModel, Page page)
public List<com.google.gson.JsonObject> excelToEruptObject(EruptModel eruptModel, org.apache.poi.ss.usermodel.Workbook workbook) throws Exception
Exception
public String getStringCellValue(org.apache.poi.ss.usermodel.Cell cell)
public org.apache.poi.ss.usermodel.Workbook createExcelTemplate(EruptModel eruptModel)
Copyright © 2022. All rights reserved.