根据文件拆分id获取拆分详情页面URL接口

This commit is contained in:
wangzhijiang
2024-03-22 15:23:48 +08:00
parent f87dc45881
commit 539a64b524
@@ -199,7 +199,8 @@ public class DockingController {
@ApiOperation(value="根据文件拆分id获取拆分详情页面URL", notes="根据文件拆分id获取拆分详情页面URL")
@PostMapping(value = "/getSplitDetailUrlByDocId")
@ApiOperationSupport(order = 7)
public Result<String> getSplitDetailUrlByDocId(@RequestBody JSONObject json) {
public Result<Map<String,String>> getSplitDetailUrlByDocId(@RequestBody JSONObject json) {
Map<String,String> resultMap = new HashMap<>();
StringBuilder resultSb = new StringBuilder();
String docId = json.getString("docId");
if (StringUtils.isEmpty(docId)) {
@@ -213,6 +214,7 @@ public class DockingController {
resultSb.append("/documentTool/DocumentSplitDetail?infoId=").append(docId);
resultSb.append("&").append("infoNumber=").append(dsInfo.getSerialNumber());
resultSb.append("&").append("standardName=").append(dsInfo.getTitle());
return Result.OK(resultSb.toString());
resultMap.put("url",resultSb.toString());
return Result.OK(resultMap);
}
}