浏览代码

minIO返回url调整

master
huminghao 1 个月前
父节点
当前提交
1a85f50f1e

+ 1
- 1
zhywpt-app-invw/src/main/java/cn/com/taiji/invw/manager/card/InvwCardDetailsManagerImpl.java 查看文件

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

+ 1
- 1
zhywpt-app-invw/src/main/java/cn/com/taiji/invw/manager/obu/InvwObuDetailsManagerImpl.java 查看文件

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

+ 2
- 1
zhywpt-app-invw/src/main/java/cn/com/taiji/invw/manager/stocktaking/InvwStocktakingInfoManagerImpl.java 查看文件

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;
} }

+ 1
- 1
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/manager/issueOrder/IssueOrderRefundManagerImpl.java 查看文件

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));
} }





+ 1
- 1
zhywpt-app-settlew/src/main/java/cn/com/taiji/settlew/manager/issueOrder/IssueOrderRefundManagerImpl.java 查看文件

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));
} }





正在加载...
取消
保存