Pārlūkot izejas kodu

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Backend into qtz1

qitz 2 gadus atpakaļ
vecāks
revīzija
a64aa29a4e

+ 8
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Parādīt failu

@@ -3771,6 +3771,13 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
3771 3771
                 }
3772 3772
             }
3773 3773
 
3774
+        }else {
3775
+            caseAttach = MsCaseAttach.builder()
3776
+                    .caseAppliId(application.getId())
3777
+                    .annexName(orgFileName+".docx")
3778
+                    .annexPath(resultFilePath.replace(RuoYiConfig.getProfile(),Constants.RESOURCE_PREFIX))
3779
+                    .annexType(annexType)
3780
+                    .build();
3774 3781
         }
3775 3782
         //保存到附件表里,先删除之前的在保存
3776 3783
         if(caseAttach != null) {
@@ -3791,10 +3798,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
3791 3798
         if (file.exists()) {
3792 3799
            // 调用onlyoffice
3793 3800
             try {
3794
-                onlyOfficeUrl=  onlyOfficeUrl+ "?caseId="+caseId;
3795 3801
                 Map<String, Object> params = new HashMap<>();
3796 3802
                 params.put("file", file);
3797
-                String postResult = HttpUtil.post(onlyOfficeUrl, params);
3803
+                String postResult = HttpUtil.post(onlyOfficeUrl+ "/"+String.valueOf(caseId), params);
3798 3804
                 if(StrUtil.isNotEmpty(postResult)){
3799 3805
                     // 转为jsonArray
3800 3806
                     JSONArray jsonArray = JSONArray.parseArray(postResult);