文档库--报错处理
This commit is contained in:
+1
-1
@@ -3423,7 +3423,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
MultipartFile multipartFile =
|
MultipartFile multipartFile =
|
||||||
new MockMultipartFile(nowFileList.get(0).getName(), nowFileList.get(0).getName(), "text/plain", input);
|
new MockMultipartFile(nowFileList.get(0).getName(), nowFileList.get(0).getName(), "text/plain", input);
|
||||||
//文件存入文件表
|
//文件存入文件表
|
||||||
OSSFile ossFile = iOSSFileService.uploadLocal(multipartFile, "");
|
OSSFile ossFile = iOSSFileService.uploadLocal(multipartFile, "",null);
|
||||||
if (ObjectUtils.isNotEmpty(ossFile)) {
|
if (ObjectUtils.isNotEmpty(ossFile)) {
|
||||||
sb.append(ossFile.getId() + ",");
|
sb.append(ossFile.getId() + ",");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,17 @@
|
|||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.pdfbox</groupId>
|
||||||
|
<artifactId>pdfbox</artifactId>
|
||||||
|
<version>2.0.6</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.yaml</groupId>
|
||||||
|
<artifactId>snakeyaml</artifactId>
|
||||||
|
<version>${snakeyaml.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -58,4 +69,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user