From f9784ddcada9bf6ae2204d64c839f9b4b36801e7 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Fri, 2 Feb 2024 09:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20onlyOffice=E8=8E=B7=E5=8F=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/onlyoffice/controller/OnlyOfficeController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java index bf24e288..30e0ba13 100644 --- a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java +++ b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java @@ -122,6 +122,9 @@ public class OnlyOfficeController { @ApiOperation(value = "根据Id获取文件信息") @GetMapping("/queryById") public Result> queryById(String id) { + if (StringUtils.isBlank(id)) { + return Result.error("id不能为空!"); + } HashMap map = new HashMap<>(); BusProcessModelHis his = busProcessModelHisService.getById(id); map.put("fileName", his.getFileName());