From 7aed34d06ef6e4d5812307b308789cee236809a7 Mon Sep 17 00:00:00 2001 From: wangzhijiang <1358525938@qq.com> Date: Fri, 22 Mar 2024 20:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docking/controller/DockingController.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/byd-structuredplugins-serve/laws-modules/src/main/java/com/jero/modules/docking/controller/DockingController.java b/byd-structuredplugins-serve/laws-modules/src/main/java/com/jero/modules/docking/controller/DockingController.java index a45712d..c3f3b67 100644 --- a/byd-structuredplugins-serve/laws-modules/src/main/java/com/jero/modules/docking/controller/DockingController.java +++ b/byd-structuredplugins-serve/laws-modules/src/main/java/com/jero/modules/docking/controller/DockingController.java @@ -76,6 +76,9 @@ public class DockingController { sarFileSplitInfoEO.setId(docId); sarFileSplitInfoEO.setFilePath(filePath); documentSplitService.add(sarFileSplitInfoEO, CommonConstant.SPLIT_SOURCE_2); + + Map resultMap = new HashMap<>(); + resultMap.put("infoId",docId); return Result.OK(MessageUtils.getMessage(ResultCommon.OK)); } @@ -171,8 +174,11 @@ public class DockingController { @ApiOperation(value="在线编辑的编辑接口", notes="在线编辑的编辑接口") @PostMapping(value = "/onlyOfficeEditor") @ApiOperationSupport(order = 5) - public Result onlyOfficeEditor( @RequestBody JSONObject json) { - return Result.OK(busProcessModelHisService.onlyOfficeEditor(json)); + public Result> onlyOfficeEditor( @RequestBody JSONObject json) { + String url = busProcessModelHisService.onlyOfficeEditor(json); + Map resultMap = new HashMap<>(); + resultMap.put("url",url); + return Result.OK(resultMap); } /** @@ -185,8 +191,11 @@ public class DockingController { @ApiOperation(value="在线编辑的预览接口", notes="在线编辑的预览接口") @PostMapping(value = "/onlyOfficePreview") @ApiOperationSupport(order = 6) - public Result onlyOfficePreview( @RequestBody JSONObject json) { - return Result.OK(busProcessModelHisService.onlyOfficePreview(json)); + public Result> onlyOfficePreview( @RequestBody JSONObject json) { + String url = this.busProcessModelHisService.onlyOfficePreview(json); + Map resultMap = new HashMap<>(); + resultMap.put("url",url); + return Result.OK(resultMap); } /**