|
|
|
@ -76,27 +76,21 @@ public class SmgInBean extends FileJobBean {
|
|
|
|
|
alert(interfaceSequences);
|
|
|
|
|
|
|
|
|
|
if (!isEmpty(fileStatus))
|
|
|
|
|
move(
|
|
|
|
|
fileStatus.stream().map(FileStatus::getPath).collect(Collectors.toList()),
|
|
|
|
|
successDir()
|
|
|
|
|
);
|
|
|
|
|
move(FileStatus.getPaths(fileStatus), successDir());
|
|
|
|
|
|
|
|
|
|
fileStatus = received.get(false);
|
|
|
|
|
if (!isEmpty(fileStatus))
|
|
|
|
|
move(
|
|
|
|
|
fileStatus.stream().map(FileStatus::getPath).collect(Collectors.toList()),
|
|
|
|
|
failDir()
|
|
|
|
|
);
|
|
|
|
|
move(FileStatus.getPaths(fileStatus), failDir());
|
|
|
|
|
|
|
|
|
|
return interfaceSequences;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<FileStatus> parse() {
|
|
|
|
|
String infoType = config("infoType");
|
|
|
|
|
List<Path> paths = getReceivedFilePaths();
|
|
|
|
|
List<Path> paths = getReceivedFilePaths(null);
|
|
|
|
|
return paths.stream()
|
|
|
|
|
.map(path -> parse(infoType, path))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private FileStatus parse(String infoType, Path path) {
|
|
|
|
|