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);