From 721cfd85ffd818f76c8eed1e3e0177da6a73d1e0 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Thu, 18 Sep 2025 11:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/archive/FileManagementController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bonus-admin/src/main/java/com/bonus/web/controller/archive/FileManagementController.java b/bonus-admin/src/main/java/com/bonus/web/controller/archive/FileManagementController.java index caeec22..8f9c12e 100644 --- a/bonus-admin/src/main/java/com/bonus/web/controller/archive/FileManagementController.java +++ b/bonus-admin/src/main/java/com/bonus/web/controller/archive/FileManagementController.java @@ -354,10 +354,10 @@ public class FileManagementController extends BaseController { return R.ok(num); } - @GetMapping("/getFileAsBase64}") - public R getFileAsBase64(@PathVariable Long id) throws IOException { + @GetMapping("/getFileAsBase64") + public R getFileAsBase64(DaKyProFilesContentsDto dto) throws IOException { Map response = new HashMap<>(); - DaKyProFilesContentsVo record = fileManageService.getFileById(id); + DaKyProFilesContentsVo record = fileManageService.getFileById(Long.parseLong(dto.getId())); if (record == null || StringUtils.isBlank(record.getFilePath())) { return R.fail("文件未找到");