Commit afc19d1b131552424ba87d90d96281497371732c

Authored by wangqian
1 parent f7fcb204

取消导出下载权限,由主菜单权限去控制

urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/filedownload/FileDownloadController.java
@@ -102,8 +102,9 @@ public class FileDownloadController { @@ -102,8 +102,9 @@ public class FileDownloadController {
102 102
103 @GetMapping("/export-excel") 103 @GetMapping("/export-excel")
104 @Operation(summary = "导出文件异步下载任务 Excel") 104 @Operation(summary = "导出文件异步下载任务 Excel")
105 - @PreAuthorize("@ss.hasPermission('garden:file-download:export')") 105 + //@PreAuthorize("@ss.hasPermission('garden:file-download:export')")
106 @ApiAccessLog(operateType = EXPORT) 106 @ApiAccessLog(operateType = EXPORT)
  107 + @PermitAll
107 public void exportFileDownloadExcel(@Valid FileDownloadPageReqVO pageReqVO, 108 public void exportFileDownloadExcel(@Valid FileDownloadPageReqVO pageReqVO,
108 HttpServletResponse response) throws IOException { 109 HttpServletResponse response) throws IOException {
109 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); 110 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
@@ -116,7 +117,8 @@ public class FileDownloadController { @@ -116,7 +117,8 @@ public class FileDownloadController {
116 @GetMapping("/download") 117 @GetMapping("/download")
117 @Operation(summary = "下载文件异步下载任务") 118 @Operation(summary = "下载文件异步下载任务")
118 @Parameter(name = "id", description = "编号", required = true, example = "1024") 119 @Parameter(name = "id", description = "编号", required = true, example = "1024")
119 - @PreAuthorize("@ss.hasPermission('garden:file-download:query')") 120 + //@PreAuthorize("@ss.hasPermission('garden:file-download:query')")
  121 + @PermitAll
120 public void downloadFileDownload(@RequestParam("id") Long id, HttpServletResponse response) throws IOException { 122 public void downloadFileDownload(@RequestParam("id") Long id, HttpServletResponse response) throws IOException {
121 123
122 fileDownloadService.writeAttachment(response, id); 124 fileDownloadService.writeAttachment(response, id);