对接问题修改。

This commit is contained in:
wangzhijiang
2024-03-22 20:26:54 +08:00
parent bf29b40c56
commit 7aed34d06e
@@ -76,6 +76,9 @@ public class DockingController {
sarFileSplitInfoEO.setId(docId); sarFileSplitInfoEO.setId(docId);
sarFileSplitInfoEO.setFilePath(filePath); sarFileSplitInfoEO.setFilePath(filePath);
documentSplitService.add(sarFileSplitInfoEO, CommonConstant.SPLIT_SOURCE_2); documentSplitService.add(sarFileSplitInfoEO, CommonConstant.SPLIT_SOURCE_2);
Map<String,String> resultMap = new HashMap<>();
resultMap.put("infoId",docId);
return Result.OK(MessageUtils.getMessage(ResultCommon.OK)); return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
} }
@@ -171,8 +174,11 @@ public class DockingController {
@ApiOperation(value="在线编辑的编辑接口", notes="在线编辑的编辑接口") @ApiOperation(value="在线编辑的编辑接口", notes="在线编辑的编辑接口")
@PostMapping(value = "/onlyOfficeEditor") @PostMapping(value = "/onlyOfficeEditor")
@ApiOperationSupport(order = 5) @ApiOperationSupport(order = 5)
public Result<String> onlyOfficeEditor( @RequestBody JSONObject json) { public Result<Map<String,String>> onlyOfficeEditor( @RequestBody JSONObject json) {
return Result.OK(busProcessModelHisService.onlyOfficeEditor(json)); String url = busProcessModelHisService.onlyOfficeEditor(json);
Map<String,String> resultMap = new HashMap<>();
resultMap.put("url",url);
return Result.OK(resultMap);
} }
/** /**
@@ -185,8 +191,11 @@ public class DockingController {
@ApiOperation(value="在线编辑的预览接口", notes="在线编辑的预览接口") @ApiOperation(value="在线编辑的预览接口", notes="在线编辑的预览接口")
@PostMapping(value = "/onlyOfficePreview") @PostMapping(value = "/onlyOfficePreview")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
public Result<String> onlyOfficePreview( @RequestBody JSONObject json) { public Result<Map<String,String>> onlyOfficePreview( @RequestBody JSONObject json) {
return Result.OK(busProcessModelHisService.onlyOfficePreview(json)); String url = this.busProcessModelHisService.onlyOfficePreview(json);
Map<String,String> resultMap = new HashMap<>();
resultMap.put("url",url);
return Result.OK(resultMap);
} }
/** /**