File file = EasyExcelUtil.exportExcelFile(InvwCardDetailsExcelModel.class, excelModelList2, "卡设备"); | File file = EasyExcelUtil.exportExcelFile(InvwCardDetailsExcelModel.class, excelModelList2, "卡设备"); | ||||
String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.INVW); | String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.INVW); | ||||
CommExcelFileResponseDTO responseDTO = new CommExcelFileResponseDTO(); | CommExcelFileResponseDTO responseDTO = new CommExcelFileResponseDTO(); | ||||
return responseDTO.setFilePath(filePath); | |||||
return responseDTO.setFilePath(minioUtil.getOuterUrl(filePath)); | |||||
} | } | ||||
@Override | @Override |
File file = EasyExcelUtil.exportExcelFile(InvwObuDetailsExcelModel.class, excelModelList2, "签设备"); | File file = EasyExcelUtil.exportExcelFile(InvwObuDetailsExcelModel.class, excelModelList2, "签设备"); | ||||
String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.INVW); | String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.INVW); | ||||
CommExcelFileResponseDTO responseDTO = new CommExcelFileResponseDTO(); | CommExcelFileResponseDTO responseDTO = new CommExcelFileResponseDTO(); | ||||
return responseDTO.setFilePath(filePath); | |||||
return responseDTO.setFilePath(minioUtil.getOuterUrl(filePath)); | |||||
} | } | ||||
@Override | @Override |
try { | try { | ||||
File tempFile = File.createTempFile("temp_error_设备移除错误反馈表", ".xlsx"); | File tempFile = File.createTempFile("temp_error_设备移除错误反馈表", ".xlsx"); | ||||
EasyExcel.write(tempFile, InvwStocktakingInfoRemoveModel.class).sheet("设备移除错误反馈表").doWrite(result); | EasyExcel.write(tempFile, InvwStocktakingInfoRemoveModel.class).sheet("设备移除错误反馈表").doWrite(result); | ||||
return minioUtil.fileUploadHttp(tempFile, BucketFileBus.INVW); | |||||
String filePath = minioUtil.fileUploadHttp(tempFile, BucketFileBus.INVW); | |||||
return minioUtil.getOuterUrl(filePath); | |||||
} catch (Exception e) { | } catch (Exception e) { | ||||
throw e; | throw e; | ||||
} | } |
List<IssueOrderRefundExcelModel> excelModelList = SourceTargetMapper.INSTANCE.orderRefundToModelList(list); | List<IssueOrderRefundExcelModel> excelModelList = SourceTargetMapper.INSTANCE.orderRefundToModelList(list); | ||||
File file = EasyExcelUtil.exportExcelFile(IssueOrderRefundExcelModel.class, excelModelList, "退费管理"); | File file = EasyExcelUtil.exportExcelFile(IssueOrderRefundExcelModel.class, excelModelList, "退费管理"); | ||||
String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.MANAGEW); | String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.MANAGEW); | ||||
return new IssueOrderRefundExportResponseDTO(filePath); | |||||
return new IssueOrderRefundExportResponseDTO(minioUtil.getOuterUrl(filePath)); | |||||
} | } | ||||
List<IssueOrderRefundExcelModel> excelModelList = SourceTargetMapper.INSTANCE.orderRefundToModelList(list); | List<IssueOrderRefundExcelModel> excelModelList = SourceTargetMapper.INSTANCE.orderRefundToModelList(list); | ||||
File file = EasyExcelUtil.exportExcelFile(IssueOrderRefundExcelModel.class, excelModelList, "退费管理"); | File file = EasyExcelUtil.exportExcelFile(IssueOrderRefundExcelModel.class, excelModelList, "退费管理"); | ||||
String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.SETTLEW); | String filePath = minioUtil.fileUploadHttp(file, BucketFileBus.SETTLEW); | ||||
return new IssueOrderRefundExportResponseDTO(filePath); | |||||
return new IssueOrderRefundExportResponseDTO(minioUtil.getOuterUrl(filePath)); | |||||
} | } | ||||