|
|
|
@ -199,7 +199,7 @@ public class FileServiceImpl implements FileService { |
|
|
|
|
FileInputStream fis = null; |
|
|
|
|
FileOutputStream fos = null; |
|
|
|
|
try { |
|
|
|
|
File download = new File(downloadFile.substring(0, downloadFile.lastIndexOf("/"))); |
|
|
|
|
File download = new File(downloadFile); |
|
|
|
|
fis = new FileInputStream(download); |
|
|
|
|
fos = new FileOutputStream(file); |
|
|
|
|
//复制文件
|
|
|
|
@ -210,7 +210,7 @@ public class FileServiceImpl implements FileService { |
|
|
|
|
fos.flush(); |
|
|
|
|
b = true; |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
log.error("本地导出异常:{}",e); |
|
|
|
|
}finally { |
|
|
|
|
try { |
|
|
|
|
if(fis != null){fis.close();} |
|
|
|
|