数据存储查询
This commit is contained in:
@@ -48,23 +48,24 @@ public class DataStorageAnalysisController {
|
||||
@Parameter(description = "查询时间间隔(月)") @RequestParam(value = "intervalMonths", required = false) Integer intervalMonths,
|
||||
@Parameter(description = "增量查询指定的月:2025-06") @RequestParam(value = "targetYm", required = false) String targetYm
|
||||
) {
|
||||
try {
|
||||
|
||||
if (ObjectUtils.isEmpty(queryNodeType) || ObjectUtils.isEmpty(uuids)) {
|
||||
return SdmResponse.success();
|
||||
}
|
||||
List<List<JSONObject>> result = new ArrayList<>();
|
||||
for (String uuid : uuids) {
|
||||
try {
|
||||
SdmResponse<List<JSONObject>> sdmResponse = dataStorageAnalysis.getNodeSizeByNodeType(queryNodeType, uuid, intervalMonths, targetYm);
|
||||
if (sdmResponse.getData() != null) {
|
||||
result.add(sdmResponse.getData());
|
||||
}
|
||||
}
|
||||
return SdmResponse.success(result);
|
||||
} catch (Exception e) {
|
||||
log.error("获取文件空间占用失败", e);
|
||||
return SdmResponse.success();
|
||||
}
|
||||
}
|
||||
return SdmResponse.success(result);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据用户组和用户id获取用户的空间占用
|
||||
|
||||
Reference in New Issue
Block a user