| | |
| | | import com.ruoyi.common.excel.ExcelResult; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import lombok.AccessLevel; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import javax.servlet.ServletOutputStream; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | @NoArgsConstructor(access = AccessLevel.PRIVATE) |
| | | public class ExcelUtil { |
| | | |
| | | /** |
| | | * 同步导入 |
| | | * 同步导入(适用于小数据量) |
| | | * |
| | | * @param is 输入流 |
| | | * @return 转换后集合 |
| | |
| | | |
| | | |
| | | /** |
| | | * 使用校验监听器处理导入 |
| | | * 使用校验监听器 异步导入 同步返回 |
| | | * |
| | | * @param is 输入流 |
| | | * @param clazz 对象类型 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 使用自定义监听器导入 |
| | | * 使用自定义监听器 异步导入 自定义返回 |
| | | * |
| | | * @param is 输入流 |
| | | * @param clazz 对象类型 |