✨ 支持应收账单导出通过 OSS 签名链接下载
This commit is contained in:
+8
-1
@@ -325,9 +325,16 @@ public class ArBillController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载已成功生成的导出文件;文件内容由服务层从临时文件或配置存储读取。
|
||||
* 获取已成功生成导出文件的下载方式;OSS 文件返回短时签名链接,本地历史文件走原下载接口。
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ar:bill:download')")
|
||||
@GetMapping("/export/{exportId}/download-url")
|
||||
public AjaxResult exportDownloadInfo(@PathVariable Long exportId) {
|
||||
return success(billService.getExportDownloadInfo(exportId));
|
||||
}
|
||||
|
||||
/** 下载本地历史导出文件;OSS 文件由前端通过签名链接直接下载。 */
|
||||
@PreAuthorize("@ss.hasPermi('ar:bill:download')")
|
||||
@GetMapping("/export/{exportId}/download")
|
||||
public void download(@PathVariable Long exportId, HttpServletResponse response) throws Exception {
|
||||
billService.downloadExport(exportId, response);
|
||||
|
||||
Reference in New Issue
Block a user