From a9bf9379ba784ed2e18bf57c46f90e3e17abd980 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Fri, 15 Mar 2024 17:37:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=8A=82=E7=94=B3=E8=AF=B7=E4=B9=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mscase/impl/MsCaseApplicationServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java index 49d852a..db9f4b3 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java @@ -3771,6 +3771,13 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService { } } + }else { + caseAttach = MsCaseAttach.builder() + .caseAppliId(application.getId()) + .annexName(orgFileName+".docx") + .annexPath(resultFilePath.replace(RuoYiConfig.getProfile(),Constants.RESOURCE_PREFIX)) + .annexType(annexType) + .build(); } //保存到附件表里,先删除之前的在保存 if(caseAttach != null) { @@ -3791,7 +3798,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService { if (file.exists()) { // 调用onlyoffice try { - onlyOfficeUrl= onlyOfficeUrl+ "?caseId="+caseId; + onlyOfficeUrl= onlyOfficeUrl+ "/"+String.valueOf(caseId); Map params = new HashMap<>(); params.put("file", file); String postResult = HttpUtil.post(onlyOfficeUrl, params);