diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/filedownload/FileDownloadController.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/filedownload/FileDownloadController.java index f1ae829..4409677 100644 --- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/filedownload/FileDownloadController.java +++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/filedownload/FileDownloadController.java @@ -102,8 +102,9 @@ public class FileDownloadController { @GetMapping("/export-excel") @Operation(summary = "导出文件异步下载任务 Excel") - @PreAuthorize("@ss.hasPermission('garden:file-download:export')") + //@PreAuthorize("@ss.hasPermission('garden:file-download:export')") @ApiAccessLog(operateType = EXPORT) + @PermitAll public void exportFileDownloadExcel(@Valid FileDownloadPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); @@ -116,7 +117,8 @@ public class FileDownloadController { @GetMapping("/download") @Operation(summary = "下载文件异步下载任务") @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('garden:file-download:query')") + //@PreAuthorize("@ss.hasPermission('garden:file-download:query')") + @PermitAll public void downloadFileDownload(@RequestParam("id") Long id, HttpServletResponse response) throws IOException { fileDownloadService.writeAttachment(response, id);