Parcourir la source

Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev

wangqiong123 il y a 2 ans
Parent
révision
21e86a4c47

+ 8
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Voir le fichier

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
         if(caseAttach != null) {
3783
         if(caseAttach != null) {
3791
         if (file.exists()) {
3798
         if (file.exists()) {
3792
            // 调用onlyoffice
3799
            // 调用onlyoffice
3793
             try {
3800
             try {
3794
-                onlyOfficeUrl=  onlyOfficeUrl+ "?caseId="+caseId;
3801
+                onlyOfficeUrl=  onlyOfficeUrl+ "/"+String.valueOf(caseId);
3795
                 Map<String, Object> params = new HashMap<>();
3802
                 Map<String, Object> params = new HashMap<>();
3796
                 params.put("file", file);
3803
                 params.put("file", file);
3797
                 String postResult = HttpUtil.post(onlyOfficeUrl, params);
3804
                 String postResult = HttpUtil.post(onlyOfficeUrl, params);