연계자료에 동영상파일 있을 경우 단속대장 첨부파일에 등록되지 않도록 수정

main
이범준 1 year ago
parent 66fc896588
commit a4f010d482

@ -1,5 +1,6 @@
package cokr.xit.fims.crdn.service.bean; package cokr.xit.fims.crdn.service.bean;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -43,7 +44,14 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
for (Crdn crdn: crdns) { for (Crdn crdn: crdns) {
List<FileInfo> files = byInfoKey.get(crdn.getLinkId()); List<FileInfo> files = byInfoKey.get(crdn.getLinkId());
crdnService.create(null, crdn, files); Iterator<FileInfo> 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); importBean.createCvlcpts(petitions);

Loading…
Cancel
Save