政企WPS
This commit is contained in:
@ -231,8 +231,9 @@ public class WpsController {
|
||||
List<AttachmentEntity> entityList = detail.get(fileId);
|
||||
if(entityList!=null&&entityList.size()>0) {
|
||||
Optional<byte[]> optional1 = attachmentClient.downloadFileByObjectId(entityList.get(0).getId());
|
||||
|
||||
buf = optional1.get();
|
||||
if(optional1!=null&&optional1.isPresent()) {
|
||||
buf = optional1.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
return buf.length>10000;
|
||||
@ -303,7 +304,7 @@ 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) {
|
||||
if(optional1!=null&&optional1.isPresent()) {
|
||||
fileLength = String.valueOf(optional1.get().length);
|
||||
fileName = entityList.get(0).getFilename();
|
||||
buf = optional1.get();
|
||||
|
@ -708,8 +708,10 @@ public class WpsServiceImpl implements WpsService {
|
||||
List<AttachmentEntity> entityList = detail.get(id);
|
||||
if(entityList!=null&&entityList.size()>0) {
|
||||
Optional<byte[]> optional1 = attachmentClient.downloadFileByObjectId(entityList.get(0).getId());
|
||||
uploadB = false;
|
||||
buf = optional1.get();
|
||||
if(optional1!=null&&optional1.isPresent()) {
|
||||
uploadB = false;
|
||||
buf = optional1.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
if(uploadB){
|
||||
|
Reference in New Issue
Block a user