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 102  
103 103 @GetMapping("/export-excel")
104 104 @Operation(summary = "导出文件异步下载任务 Excel")
105   - @PreAuthorize("@ss.hasPermission('garden:file-download:export')")
  105 + //@PreAuthorize("@ss.hasPermission('garden:file-download:export')")
106 106 @ApiAccessLog(operateType = EXPORT)
  107 + @PermitAll
107 108 public void exportFileDownloadExcel(@Valid FileDownloadPageReqVO pageReqVO,
108 109 HttpServletResponse response) throws IOException {
109 110 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
... ... @@ -116,7 +117,8 @@ public class FileDownloadController {
116 117 @GetMapping("/download")
117 118 @Operation(summary = "下载文件异步下载任务")
118 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 122 public void downloadFileDownload(@RequestParam("id") Long id, HttpServletResponse response) throws IOException {
121 123  
122 124 fileDownloadService.writeAttachment(response, id);
... ...