fix(测试跟踪): 功能用例创建版本分支, 报功能用例已存在问题

--bug=1027596 --user=王旭 【测试跟踪】功能用例-创建分支版本-报错该模块下已存在该功能用例 https://www.tapd.cn/55049933/s/1392461
This commit is contained in:
WangXu10 2023-07-13 10:16:30 +08:00 committed by fit2-zhao
parent 8c5e51e512
commit 15d1ae7fbf
1 changed files with 5 additions and 0 deletions

View File

@ -635,6 +635,11 @@ public class TestCaseService {
if (StringUtils.isNotBlank(testCase.getTestId())) {
criteria.andTestIdEqualTo(testCase.getTestId());
}
if (StringUtils.isNotBlank(testCase.getVersionId())) {
criteria.andVersionIdEqualTo(testCase.getVersionId());
}
if (isEdit && StringUtils.isNotBlank(testCase.getId())) {
criteria.andIdNotEqualTo(testCase.getId());
}