diff --git a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java index 4403d2a982..bb1753d894 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java @@ -152,9 +152,8 @@ public class ApiTestCaseService { public List idSimple(ApiTestCaseRequest request) { request = this.initRequest(request, true, true); - - List ids = extApiTestCaseMapper.idSimple(request); - return ids; + List apiTestCaseDTOS = extApiTestCaseMapper.listSimple(request); + return apiTestCaseDTOS.stream().map(ApiTestCaseDTO::getId).collect(Collectors.toList()); } /**