From 5cddb80675e49ec9320afb76e62ad550a61a78b7 Mon Sep 17 00:00:00 2001 From: junhong Date: Thu, 27 Jan 2022 14:25:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E5=88=A0=E9=99=A4=E5=90=8E?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E8=BF=98?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E5=87=BA=E5=9B=9E=E6=94=B6=E7=AB=99=E9=87=8C?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E4=BE=8B=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010036 --user=周骏弘 【接口测试】接口用例删除后,导出接口定义,还会导出回收站里的用例 https://www.tapd.cn/55049933/s/1099892 --- .../java/io/metersphere/api/service/ApiTestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 19813385ea..4403d2a982 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java @@ -648,7 +648,7 @@ public class ApiTestCaseService { public List selectCasesBydApiIds(List apiIds) { ApiTestCaseExample example = new ApiTestCaseExample(); - example.createCriteria().andApiDefinitionIdIn(apiIds); + example.createCriteria().andApiDefinitionIdIn(apiIds).andStatusNotEqualTo("Trash"); return apiTestCaseMapper.selectByExampleWithBLOBs(example); }