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