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