切换mysql为达梦数据库-代码审查
1.systemboot模块
This commit is contained in:
@@ -134,10 +134,6 @@ public class FileStorageUtil {
|
||||
/**
|
||||
* 上传InputStream流,并指定文件的名称
|
||||
* @author xuyang
|
||||
* @param inputStream
|
||||
* @param dir
|
||||
* @param fileName
|
||||
* @return
|
||||
*/
|
||||
public String uploadStreamSpecifyName(InputStream inputStream, String dir, String fileName) {
|
||||
String filePath;
|
||||
@@ -243,26 +239,6 @@ public class FileStorageUtil {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取下载文件流
|
||||
*
|
||||
* @param filePath
|
||||
* @return
|
||||
* @throws IOException
|
||||
*/
|
||||
public InputStream downloadStream(String filePath) {
|
||||
InputStream inputStream;
|
||||
try {
|
||||
if (generalInfo.getBusinessFileStorage() == GeneralConstant.HUAWEI_OBS) {
|
||||
inputStream = obsUtil.downloadStream(filePath);
|
||||
} else {
|
||||
inputStream = minIoUtils.downloadStream(minIossProperties.getBucket(), filePath);
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
throw new BusinessException(OssResponseEnum.DOWNLOAD_FILE_STREAM_ERROR);
|
||||
}
|
||||
return inputStream;
|
||||
}
|
||||
|
||||
/***
|
||||
* 根据文件路径删除指定文件对象
|
||||
|
||||
Reference in New Issue
Block a user