From bcfb0306302e8328955fd478a283859c26040fa7 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 14 Sep 2023 16:13:34 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B5=AD=EB=AF=BC=EC=8B=A0=EB=AC=B8=EA=B3=A0?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=A4=91=20=EB=8F=99=EC=98=81=EC=83=81=20?= =?UTF-8?q?=EC=A0=9C=EC=99=B8=20=EC=B2=98=EB=A6=AC=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/service/bean/ImportServiceBean.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java index 66eeeb04..2068dde1 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java @@ -46,17 +46,13 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ for (Crdn crdn: crdns) { List files = byInfoKey.get(crdn.getLinkId()); - for(FileInfo file : files) { - - if(file.getMimeType().startsWith("video")) { - files.remove(file); - continue; - } + files.removeIf(item -> item.getMimeType().startsWith("video")); + for(FileInfo file : files) { file.setInputStream(file.getInputStream()); //신규 인풋스트림 생성 file.setUrl(""); //인터페이스 첨부파일정보 제거 file.setPath(""); //국민신문고 첨부파일정보 제거 - } + } crdn.setCvlcptLinkYn("Y"); crdnBean.create(null, crdn, files);