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