数据存储查询
This commit is contained in:
@@ -62,7 +62,7 @@ public class DataStorageAnalysisController {
|
||||
return SdmResponse.success(result);
|
||||
} catch (Exception e) {
|
||||
log.error("获取文件空间占用失败", e);
|
||||
return SdmResponse.failed("获取文件空间占用失败");
|
||||
return SdmResponse.success();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,8 @@ public class DataStorageAnalysisImpl implements DataStorageAnalysis {
|
||||
SdmResponse<List<AllNodeByProjectIdAndTypeResp>> response = simuluationNodeFeignClient.getAllNodeByProjectIdAndType(uuid, queryNodeType);
|
||||
Long tenantId = ThreadLocalContext.getTenantId();
|
||||
if (!response.isSuccess()) {
|
||||
return SdmResponse.failed("获取节点信息失败");
|
||||
log.error("获取节点信息失败");
|
||||
return SdmResponse.success();
|
||||
}
|
||||
|
||||
List<AllNodeByProjectIdAndTypeResp> nodeLists = response.getData();
|
||||
@@ -92,7 +93,8 @@ public class DataStorageAnalysisImpl implements DataStorageAnalysis {
|
||||
.eq(FileMetadataInfo::getTenantId, tenantId)
|
||||
.list().stream().collect(Collectors.toMap(FileMetadataInfo::getRelatedResourceUuid, FileMetadataInfo::getId));
|
||||
if (CollectionUtils.isEmpty(uuidToDirIdMap)) {
|
||||
return SdmResponse.failed("获取节点信息失败");
|
||||
log.error("获取节点信息失败");
|
||||
return SdmResponse.success();
|
||||
}
|
||||
|
||||
// fileMetadIds: uuid对应的fileid结合
|
||||
@@ -136,8 +138,6 @@ public class DataStorageAnalysisImpl implements DataStorageAnalysis {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
return SdmResponse.success(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user