From 8a0c45cbdadd78a2b4e1b7e033c36c20f06fc6ae Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 11 Sep 2023 17:48:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=94=A8=E4=BE=8B=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E5=9B=9E=E6=94=B6=E7=AB=99=E7=9A=84=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1029871 --user=宋昌昌 【测试跟踪】github#26516,测试跟踪-导入用例新建415条,然后把用例全部删除,再次导入用例到列表有415条用例。然后修改本地用例导入更新用例就有830条了数据重复 https://www.tapd.cn/55049933/s/1414630 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 80dac82317..748c1808d5 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -1383,7 +1383,7 @@ public class TestCaseService { TestCaseExample example = new TestCaseExample(); TestCaseExample.Criteria criteria = example.createCriteria(); - criteria.andProjectIdEqualTo(projectId); + criteria.andProjectIdEqualTo(projectId).andStatusNotEqualTo(DataStatus.TRASH.getValue()); if (request.isUseCustomId()) { List nums = testCases.stream()