拆分,认证模板导入-解决解压文件下有多个文件夹时读不到orgMkdirs问题
This commit is contained in:
+2
-2
@@ -11,8 +11,8 @@ import java.util.Map;
|
||||
* @Date: Created in 11:29 2022/5/18
|
||||
*/
|
||||
public enum ExportTemplateStateEnum {
|
||||
ENABLE("启用","0","enable"),
|
||||
DISABLE("禁用","1","disable");
|
||||
ENABLE("启用","0","Enable"),
|
||||
DISABLE("禁用","1","Disable");
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
+2
-2
@@ -734,7 +734,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
}
|
||||
return Result.error(resultMsg);
|
||||
}
|
||||
String path = uploadpath + File.separator + "modal" + File.separator + filenameorg;
|
||||
String path = uploadpath + File.separator + "modal" + File.separator + filenameorg + System.currentTimeMillis();
|
||||
File saveDirectory = new File(path);
|
||||
if(!saveDirectory.isDirectory()){
|
||||
saveDirectory.mkdir();
|
||||
@@ -742,7 +742,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(path +File.separator+ file.getOriginalFilename()));
|
||||
try{
|
||||
//解压缩
|
||||
String zipEntryName = FileUnZip.unZipFiles(path +File.separator+ file.getOriginalFilename(),path);
|
||||
String zipEntryName = FileUnZip.unZipFiles2(path +File.separator+ file.getOriginalFilename(), path);
|
||||
// 数据相关处理,
|
||||
// 1.获取其中的Excel,
|
||||
List<File> excelfilelist = FileUnZip.readExcelFile(zipEntryName);
|
||||
|
||||
Reference in New Issue
Block a user