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); } /**