政企WPS

This commit is contained in:
zhangqinbin
2023-12-22 09:15:19 +08:00
parent 0304f25a2b
commit 0a2137949b
2 changed files with 7 additions and 5 deletions

View File

@ -303,12 +303,14 @@ public class WpsController {
List<AttachmentEntity> entityList = detail.get(fileId[0]);
if(entityList!=null&&entityList.size()>0) {
Optional<byte[]> optional1 = attachmentClient.downloadFileByObjectId(entityList.get(0).getId());
if(optional1!=null) {
fileLength = String.valueOf(optional1.get().length);
fileName = entityList.get(0).getFilename();
buf = optional1.get();
uploadB = false;
}
}
}
if(uploadB){
buf = this.wpsService.uploadTempFile(fileId[0]);
//Optional<UploadObject> op=attachmentClient.upload(fileId[0],fileName,buf);

View File

@ -714,7 +714,7 @@ public class WpsServiceImpl implements WpsService {
}
if(uploadB){
buf = uploadTempFile(fileExtension);
Optional<UploadObject> op=attachmentClient.upload(id,fileName,buf);
//Optional<UploadObject> op=attachmentClient.upload(id,fileName,buf);
}
return buf;
}