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);