|
|
|
@ -202,10 +202,10 @@ public class FenpanService {
|
|
|
|
|
List<Document> documentList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
File sourceFile = new File(piece.getAbsolutePath());
|
|
|
|
|
File[] files = sourceFile.listFiles();
|
|
|
|
|
if(piece.getLevelType()==LevelType.THREE&&piece.getFileTypeEnum()==FileTypeEnum.JPG){
|
|
|
|
|
sourceFile = new File(piece.getAbsolutePath()).getParentFile();
|
|
|
|
|
files = new File[]{new File(piece.getAbsolutePath())};
|
|
|
|
|
}
|
|
|
|
|
File[] files = sourceFile.listFiles();
|
|
|
|
|
ExecutorService executorService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
|
|
|
|
|
|
|
|
|
|
List<Future<Document>> futures = new ArrayList<>();
|
|
|
|
@ -419,8 +419,8 @@ public class FenpanService {
|
|
|
|
|
}else{
|
|
|
|
|
Pieces pieces = new Pieces(FileTypeEnum.JPG, o.getParentFile().getAbsolutePath(), o.getParentFile().getName(), LevelType.FOUR);
|
|
|
|
|
allDirectory.add(pieces);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
System.out.println("请删除无效的文件:" + o.getAbsolutePath());
|
|
|
|
|