| | |
| | | package com.ruoyi.utils.excel;
|
| | |
|
| | | import com.alibaba.excel.EasyExcel;
|
| | | import com.ruoyi.common.config.ARDConfig;
|
| | | import com.ruoyi.common.constant.Constants;
|
| | |
|
| | | import java.io.File;
|
| | | import java.util.ArrayList;
|
| | |
| | | if (!parentDir.exists()) {
|
| | | parentDir.mkdirs(); // 创建文件所在的目录,包括父目录
|
| | | }
|
| | | File tempFile = new File("d:/temp.xlsx");
|
| | | // 本地临时录像地址
|
| | | String tempExcel = ARDConfig.getProfile() + Constants.LOCAL_EXCEL_TEMP_PREFIX + "/temp.xlsx";
|
| | | File tempFile = new File(tempExcel);
|
| | | List<ExcelData> existingData = new ArrayList<>();
|
| | | if (file.exists()) {
|
| | | // 读取已有数据
|