|
|
|
@ -58,13 +58,13 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
|
|
|
|
|
List<Crdn> crdns = importBean.createCrdns(petitions);
|
|
|
|
|
if (crdns.isEmpty()) return 0;
|
|
|
|
|
|
|
|
|
|
List<String> intfSeqs = crdns.stream().map(Crdn::getLinkId).toList();
|
|
|
|
|
List<String> intfSeqs = crdns.stream().map(Crdn::getCvlcptLinkId).toList();
|
|
|
|
|
|
|
|
|
|
List<FileInfo> smgFileInfoList = fileBean.getFilesOf("010", intfSeqs.toArray(new String[intfSeqs.size()]));
|
|
|
|
|
Map<String, List<FileInfo>> byInfoKey = smgFileInfoList.stream().collect(Collectors.groupingBy(FileInfo::getInfoKey));
|
|
|
|
|
|
|
|
|
|
for (Crdn crdn: crdns) {
|
|
|
|
|
List<FileInfo> files = byInfoKey.get(crdn.getLinkId());
|
|
|
|
|
List<FileInfo> files = byInfoKey.get(crdn.getCvlcptLinkId());
|
|
|
|
|
|
|
|
|
|
files.removeIf(item -> item.getMimeType().startsWith("video"));
|
|
|
|
|
|
|
|
|
|