From 3005c5c711045edcdb3ef17a7b12f197a09f06de Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Fri, 8 Sep 2023 18:12:54 +0800 Subject: [PATCH] version 2.2.0 --- .../wps/service/impl/WpsServiceImpl.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java index 6927a46..6b5efe0 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java @@ -183,18 +183,18 @@ public class WpsServiceImpl implements WpsService { wpsUser.setAvatar_url(""); wpsFile.setUser(wpsUser); - if(op.isPresent()){ - AttachmentEntity file=op.get(); - wpsFile.setDownload_url(downFileUrlPrefix+"?fileId="+op.get().getId()); - wpsFile.setSize(Integer.valueOf(file.getFileSize())); - }else{ - //上传文档中心一个空文档做为模板 - AttachmentDetail upload = attachmentClient.copyByBid("bidOnlineWpsTemplate",fileId); - attachmentClient.updateFileNameByBid(fileId,fileName); - AttachmentEntity file=upload.get(fileId).get(0); - wpsFile.setSize(Integer.valueOf(file.getFileSize())); - wpsFile.setDownload_url(downFileUrlPrefix+"?fileId="+file.getId()); - } +// if(op.isPresent()){ +// AttachmentEntity file=op.get(); +// wpsFile.setDownload_url(downFileUrlPrefix+"?fileId="+op.get().getId()); +// wpsFile.setSize(Integer.valueOf(file.getFileSize())); +// }else{ +// //上传文档中心一个空文档做为模板 +// AttachmentDetail upload = attachmentClient.copyByBid("bidOnlineWpsTemplate",fileId); +// attachmentClient.updateFileNameByBid(fileId,fileName); +// AttachmentEntity file=upload.get(fileId).get(0); +// wpsFile.setSize(Integer.valueOf(file.getFileSize())); +// wpsFile.setDownload_url(downFileUrlPrefix+"?fileId="+file.getId()); +// } return wpsFile; }