微调
This commit is contained in:
@@ -117,7 +117,7 @@ public class CsElementServiceImpl extends ServiceImpl<CsElementMapper, CsElement
|
|||||||
try {
|
try {
|
||||||
Map<String, String> filePathMap = list.stream().filter(r -> StringUtils.isNotBlank(r.getPath())).collect(Collectors.toMap(CsElement::getId, CsElement::getPath));
|
Map<String, String> filePathMap = list.stream().filter(r -> StringUtils.isNotBlank(r.getPath())).collect(Collectors.toMap(CsElement::getId, CsElement::getPath));
|
||||||
// 创建临时文件
|
// 创建临时文件
|
||||||
File zipFile = File.createTempFile(name, ".zip");
|
File zipFile = File.createTempFile("zip_" + name, ".zip");
|
||||||
FileOutputStream f = new FileOutputStream(zipFile);
|
FileOutputStream f = new FileOutputStream(zipFile);
|
||||||
CheckedOutputStream csum = new CheckedOutputStream(f, new Adler32());
|
CheckedOutputStream csum = new CheckedOutputStream(f, new Adler32());
|
||||||
// 用于将数据压缩成Zip文件格式
|
// 用于将数据压缩成Zip文件格式
|
||||||
|
|||||||
Reference in New Issue
Block a user