From c3c97be40fc887e31ada3ece4775582097f4bead Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 12 Jul 2021 14:52:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=88=97=E8=A1=A8=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98=20#1005040?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 4 ++++ 1 file changed, 4 insertions(+) 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));