Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-12-11 10:24:26 +08:00
2 changed files with 6 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ public class DataStorageAnalysisController {
* 查询学科存储空间占用项目Uuid+学科queryNodeType
*
* @param queryNodeType 需要统计的节点类型
* @param uuid 节点uuid
* @param uuids 节点uuid
* @return
*/
@GetMapping("/getNodeSizeByNodeType")

View File

@@ -110,7 +110,11 @@ public class DataStorageAnalysisImpl implements DataStorageAnalysis {
}
if (ObjectUtils.isEmpty(nodeSizeDTOS)) {
return SdmResponse.success();
// 空间为空 也要返回nodeName
JSONObject jsonObject = new JSONObject();
jsonObject.put("nodeName", nodeLists.get(0).getNodeName());
jsonObject.put("totalSize", 0);
return SdmResponse.success(Arrays.asList(jsonObject));
}