提交 595b4e64 authored 作者: 马晨俊's avatar 马晨俊

mcj:修改rar文件生成地址

上级 400230ef
...@@ -15,7 +15,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -15,7 +15,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import springfox.documentation.spring.web.json.Json;
import java.io.IOException; import java.io.IOException;
import java.nio.charset.MalformedInputException; import java.nio.charset.MalformedInputException;
...@@ -32,7 +31,7 @@ import java.util.stream.Collectors; ...@@ -32,7 +31,7 @@ import java.util.stream.Collectors;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Service("property") @Service
@Slf4j @Slf4j
@Transactional() @Transactional()
public class Inspector { public class Inspector {
......
...@@ -48,7 +48,7 @@ public class FileUtil { ...@@ -48,7 +48,7 @@ public class FileUtil {
FileUtil.unPackRar(excelFile, "./"+name+"/"+split1[0]); FileUtil.unPackRar(excelFile, "./"+name+"/"+split1[0]);
} }
String[] split = fileName.split("\\."); String[] split = fileName.split("\\.");
File file3 = new File("./"+name+"/"+split1[0]+"/"+split[0]); File file3 = new File("./"+name+"/"+split1[0]);
excelFile.delete(); excelFile.delete();
log.info("end unpack file"); log.info("end unpack file");
return file3; return file3;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论