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); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp index 8fb70a05..53df2a32 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp @@ -64,7 +64,7 @@
-