政企WPS
This commit is contained in:
@ -303,10 +303,12 @@ 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());
|
||||
fileLength = String.valueOf(optional1.get().length);
|
||||
fileName = entityList.get(0).getFilename();
|
||||
buf = optional1.get();
|
||||
uploadB = false;
|
||||
if(optional1!=null) {
|
||||
fileLength = String.valueOf(optional1.get().length);
|
||||
fileName = entityList.get(0).getFilename();
|
||||
buf = optional1.get();
|
||||
uploadB = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(uploadB){
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user