From f01b30a81118f4f96e12a9ea270b8321277822ff Mon Sep 17 00:00:00 2001 From: AnAngle <1323481023@qq.com> Date: Mon, 5 Sep 2022 18:05:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=85=A8=E9=80=89=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016555 --user=陈建星 【测试跟踪】github #17630,选择用例导出,超过200条时会报500错误,接口返回“请求没有setIds方法”,一直加载(导出用例失败) https://www.tapd.cn/55049933/s/1239137 --- .../main/java/io/metersphere/commons/utils/ServiceUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java index c82b101b82..04c94385de 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java @@ -111,7 +111,7 @@ public class ServiceUtils { } queryRequest.setIds(ids); try { - Method setIds = batchRequest.getClass().getDeclaredMethod("setIds", List.class); + Method setIds = batchRequest.getClass().getMethod("setIds", List.class); setIds.invoke(batchRequest, ids); } catch (Exception e) { LogUtil.error(e.getMessage(), e);