|
|
@@ -3,7 +3,7 @@ package com.zsjz.ai.module.eds.utils;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
-import com.zsjz.ai.module.eds.duckdb.DirTreeRegistry;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import com.zsjz.ai.module.eds.enums.ActionTypeEnum;
|
|
|
import com.zsjz.ai.module.eds.enums.EdsTreeEnum;
|
|
|
import com.zsjz.ai.module.eds.po.EdsEntityFieldInfo;
|
|
|
@@ -13,7 +13,10 @@ import com.zsjz.ai.module.eds.po.EdsTreeCount;
|
|
|
import com.zsjz.ai.module.eds.po.computer.EdsMforensics170200;
|
|
|
import lombok.Data;
|
|
|
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -61,21 +64,15 @@ public class DataCountInfo {
|
|
|
//初始化媒体文件树
|
|
|
mediaDirTreeCountMap = new ConcurrentHashMap<>(10);
|
|
|
EdsTreeEnum mediaPicture = EdsTreeEnum.MEDIA_PICTURE;
|
|
|
- mediaDirTreeCountMap.put(mediaPicture.getType(),
|
|
|
- new EdsTreeCount(cid, mediaPicture.getId(), mediaPicture.getParentId(), mediaPicture.getType(), 0, 0));
|
|
|
+ mediaDirTreeCountMap.put(mediaPicture.getType(), new EdsTreeCount(cid, mediaPicture.getId(), mediaPicture.getParentId(), mediaPicture.getType(), 0, 0));
|
|
|
EdsTreeEnum mediaAudio = EdsTreeEnum.MEDIA_AUDIO;
|
|
|
- mediaDirTreeCountMap.put(mediaAudio.getType(),
|
|
|
- new EdsTreeCount(cid, mediaAudio.getId(), mediaAudio.getParentId(), mediaAudio.getType(), 0, 0));
|
|
|
+ mediaDirTreeCountMap.put(mediaAudio.getType(), new EdsTreeCount(cid, mediaAudio.getId(), mediaAudio.getParentId(), mediaAudio.getType(), 0, 0));
|
|
|
EdsTreeEnum mediaVideo = EdsTreeEnum.MEDIA_VIDEO;
|
|
|
- mediaDirTreeCountMap.put(mediaVideo.getType(),
|
|
|
- new EdsTreeCount(cid, mediaVideo.getId(), mediaVideo.getParentId(), mediaVideo.getType(), 0, 0));
|
|
|
+ mediaDirTreeCountMap.put(mediaVideo.getType(), new EdsTreeCount(cid, mediaVideo.getId(), mediaVideo.getParentId(), mediaVideo.getType(), 0, 0));
|
|
|
EdsTreeEnum mediaOther = EdsTreeEnum.MEDIA_OTHER;
|
|
|
- mediaDirTreeCountMap.put(mediaOther.getType(),
|
|
|
- new EdsTreeCount(cid, mediaOther.getId(), mediaOther.getParentId(), mediaOther.getType(), 0, 0));
|
|
|
-
|
|
|
-
|
|
|
+ mediaDirTreeCountMap.put(mediaOther.getType(), new EdsTreeCount(cid, mediaOther.getId(), mediaOther.getParentId(), mediaOther.getType(), 0, 0));
|
|
|
//初始化当前前bcp包所有的目录树list
|
|
|
- dirTreeCountList = Collections.synchronizedList(new ArrayList<>());
|
|
|
+ dirTreeCountList = Lists.newArrayList();
|
|
|
dirTreeCountList.add(accountDirTreeCount);
|
|
|
}
|
|
|
|
|
|
@@ -142,7 +139,7 @@ public class DataCountInfo {
|
|
|
|
|
|
// 添加使用软件目录
|
|
|
if (CollUtil.isNotEmpty(runList)) {
|
|
|
- EdsTree useSoftware = EdsTreeEnum.ID_MAP.get(EdsTreeEnum.SYSTEM_TRACE_USE_SOFTWARE.getId());
|
|
|
+ EdsTree useSoftware = EdsTreeEnum.ID_MAP.get(EdsTreeEnum.SYSTEM_TRACE_USE_SOFTWARE.getId());
|
|
|
if (useSoftware != null) {
|
|
|
// 根据名称去重统计
|
|
|
long totalNum = runList.stream().map(EdsMforensics170200::getMimeName).distinct().count();
|