|
|
@@ -213,10 +213,15 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
List<MetadataClassification> metadataClassification = metadataClassificationClient.getMetadataClassification();
|
|
|
//组装数据,节点与元数据配置型的映射关系
|
|
|
HashMap<Long, List<MetadataClassification>> longStringHashMap = new HashMap<>();
|
|
|
- archiveTreeContractListByList.forEach(f -> {
|
|
|
- List<MetadataClassification> collect1 = metadataClassification.stream().filter(e -> e.getFileStorageType().contains(storageTypeMap.get(f.getStorageType()))).collect(Collectors.toList());
|
|
|
- longStringHashMap.put(f.getId(),collect1);
|
|
|
- });
|
|
|
+ if(CollectionUtil.isNotEmpty(metadataClassification)){
|
|
|
+ archiveTreeContractListByList.forEach(f -> {
|
|
|
+ if(f.getStorageType() == null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<MetadataClassification> collect1 = metadataClassification.stream().filter(e -> StringUtils.isNotEmpty(e.getFileStorageType()) && e.getFileStorageType().contains(storageTypeMap.get(f.getStorageType()))).collect(Collectors.toList());
|
|
|
+ longStringHashMap.put(f.getId(),collect1);
|
|
|
+ });
|
|
|
+ }
|
|
|
//开始检测
|
|
|
JSONObject json = bladeRedis.get(REDIS_STR + id);
|
|
|
if(json == null){
|