Commit c3778211 by 谢海旭

调整旅程客户数据导出文件名

1 parent abf7e298
...@@ -433,7 +433,9 @@ public class SopInstService { ...@@ -433,7 +433,9 @@ public class SopInstService {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
EasyExcelUtils.writeExcel(outputStream, data, "客户数据", SopCustomerExcelDTO.class); EasyExcelUtils.writeExcel(outputStream, data, "客户数据", SopCustomerExcelDTO.class);
byte[] bytes = outputStream.toByteArray(); byte[] bytes = outputStream.toByteArray();
FileUploadServerData fileUploadServerData = FileUploadUtil.uploadToFileSystem("客户数据", bytes, "xlsx");
Date now = new Date();
FileUploadServerData fileUploadServerData = FileUploadUtil.uploadToFileSystem(String.format("客户数据_%d", now.getTime()), bytes, "xlsx");
return fileUploadServerData; return fileUploadServerData;
} catch (Exception e) { } catch (Exception e) {
throw ResultException.create(SystemMessage.DATA_HANDLE_ERROR.getCode(), "客户数据导出处理异常"); throw ResultException.create(SystemMessage.DATA_HANDLE_ERROR.getCode(), "客户数据导出处理异常");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!