fix(测试跟踪): 导入用例更新时忽略回收站的重复用例

--bug=1029871 --user=宋昌昌 【测试跟踪】github#26516,测试跟踪-导入用例新建415条,然后把用例全部删除,再次导入用例到列表有415条用例。然后修改本地用例导入更新用例就有830条了数据重复 https://www.tapd.cn/55049933/s/1414630
This commit is contained in:
song-cc-rock 2023-09-11 17:48:05 +08:00 committed by 刘瑞斌
parent 0148a4a578
commit 8a0c45cbda
1 changed files with 1 additions and 1 deletions

View File

@ -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<String> nums = testCases.stream()