导出excel替换
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
package com.ruoyi.common.utils.poi;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
|
||||
/**
|
||||
* Excel数据格式处理适配器
|
||||
*
|
||||
* 支持EasyExcel和POI双模式
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ExcelHandlerAdapter
|
||||
{
|
||||
/**
|
||||
* 格式化
|
||||
*
|
||||
*
|
||||
* @param value 单元格数据值
|
||||
* @param args excel注解args参数组
|
||||
* @param cell 单元格对象
|
||||
* @param wb 工作簿对象
|
||||
* @param cell 单元格对象 (POI: org.apache.poi.ss.usermodel.Cell, EasyExcel: com.alibaba.excel.enums.CellDataType)
|
||||
* @param wb 工作簿对象 (POI: org.apache.poi.ss.usermodel.Workbook, EasyExcel: com.alibaba.excel.write.metadata.WriteWorkbook)
|
||||
*
|
||||
* @return 处理后的值
|
||||
*/
|
||||
Object format(Object value, String[] args, Cell cell, Workbook wb);
|
||||
Object format(Object value, String[] args, Object cell, Object wb);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user