|
@@ -46,6 +46,7 @@ import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 场景文件上传模块
|
|
* 场景文件上传模块
|
|
@@ -238,7 +239,7 @@ public class SceneFileController{
|
|
public ResultData noticeBuildBd(String ossHost, String uuid, String dir) throws Exception {
|
|
public ResultData noticeBuildBd(String ossHost, String uuid, String dir) throws Exception {
|
|
String prefix = "http://" + ossHost + "/";
|
|
String prefix = "http://" + ossHost + "/";
|
|
String path = "/oss/4dkankan/bd_server/" + dir;
|
|
String path = "/oss/4dkankan/bd_server/" + dir;
|
|
- List<File> files = FileUtil.loopFiles(path);
|
|
|
|
|
|
+ List<File> files = FileUtil.loopFiles(path).stream().filter(file -> !file.getAbsolutePath().contains("backup")).collect(Collectors.toList());
|
|
files.parallelStream().forEach(file ->{
|
|
files.parallelStream().forEach(file ->{
|
|
String url = prefix.concat(file.getAbsolutePath().substring(1).replace("/4dkankan",""));
|
|
String url = prefix.concat(file.getAbsolutePath().substring(1).replace("/4dkankan",""));
|
|
SendCallAlgorithmDetail detail = new SendCallAlgorithmDetail();
|
|
SendCallAlgorithmDetail detail = new SendCallAlgorithmDetail();
|