From a4f010d482b84f28bf9b131226c7559191c8484c Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 30 Aug 2023 18:12:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=B0=EA=B3=84=EC=9E=90=EB=A3=8C=EC=97=90?= =?UTF-8?q?=20=EB=8F=99=EC=98=81=EC=83=81=ED=8C=8C=EC=9D=BC=20=EC=9E=88?= =?UTF-8?q?=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EB=8B=A8=EC=86=8D=EB=8C=80?= =?UTF-8?q?=EC=9E=A5=20=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC=EC=97=90=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=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, 9 insertions(+), 1 deletion(-) 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 c8030c5b..4023b0ae 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 @@ -1,5 +1,6 @@ package cokr.xit.fims.crdn.service.bean; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -43,7 +44,14 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ for (Crdn crdn: crdns) { List files = byInfoKey.get(crdn.getLinkId()); - crdnService.create(null, crdn, files); + Iterator it = files.iterator(); + while(it.hasNext()){ + FileInfo n = it.next(); + if (n.getMimeType().startsWith("video")) { + it.remove(); + } + } + crdnService.create(null, crdn, files); } importBean.createCvlcpts(petitions);