提交 22eea806 authored 作者: zhoushaopan's avatar zhoushaopan

feat(配套模块): 修改导入excel

修改导入excel
上级 823beac9
......@@ -510,13 +510,13 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
// });
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, MatchingDeviceSaveVo.class, matchingDeviceSaveVoList);
String uuid = UUID.randomUUID().toString();
File file = new File(fileExcel + uuid + ".xlsx");
// if (!file.exists()){
// file.mkdirs();
//// file.createNewFile();
// log.info("创建文件夹");
// }
FileOutputStream fileOutputStream = new FileOutputStream(file);
File file = new File(fileExcel);
if (!file.exists()){
file.mkdirs();
// file.createNewFile();
log.info("创建文件夹");
}
FileOutputStream fileOutputStream = new FileOutputStream(file + uuid + ".xlsx");
workbook.write(fileOutputStream);
fileOutputStream.close();
return uuid+ ".xlsx";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论