diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 131ac823bc..b2a76353d4 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -870,6 +870,10 @@ public class ApiDefinitionService { } public void removeToGcByParams(ApiBatchRequest request) { + // 去除Name排序 + if (request.getCondition() != null && CollectionUtils.isNotEmpty(request.getCondition().getOrders())) { + request.getCondition().getOrders().clear(); + } ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiDefinitionMapper.selectIds(query)); extApiDefinitionMapper.removeToGc(request.getIds());