From 0a35cb3f7bf4ebb8c7ec50c447ff40b49a3bae71 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 18 Jul 2023 10:54:42 +0900 Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=A0=89=ED=86=A0=EB=A6=AC=EC=9D=98?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EC=9D=BD=EA=B8=B0=20filter=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/interfaces/smg/service/bean/SmgInBean.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/smg/service/bean/SmgInBean.java b/src/main/java/cokr/xit/interfaces/smg/service/bean/SmgInBean.java index d2ce163..02ed10d 100644 --- a/src/main/java/cokr/xit/interfaces/smg/service/bean/SmgInBean.java +++ b/src/main/java/cokr/xit/interfaces/smg/service/bean/SmgInBean.java @@ -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 parse() { String infoType = config("infoType"); - List paths = getReceivedFilePaths(); + List paths = getReceivedFilePaths(null); return paths.stream() .map(path -> parse(infoType, path)) - .collect(Collectors.toList()); + .toList(); } private FileStatus parse(String infoType, Path path) {