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 65a558e84b..f1d2e46ddb 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -897,6 +897,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));