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

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

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