From 9f05eca1ebf0d658fe5c0171462a95347b3831b1 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 15 Feb 2022 15:56:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=85=B3=E8=81=94=E5=85=A8=E9=83=A8=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010213 --user=lyh 【测试跟踪】github#10438,测试计划关联接口用例批量关联不能关联全部选中的接口用例 https://www.tapd.cn/55049933/s/1104115 --- .../java/io/metersphere/api/service/ApiTestCaseService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()); } /**