fix(测试跟踪): 功能用例创建版本分支, 报功能用例已存在问题
--bug=1027596 --user=王旭 【测试跟踪】功能用例-创建分支版本-报错该模块下已存在该功能用例 https://www.tapd.cn/55049933/s/1392461
This commit is contained in:
parent
8c5e51e512
commit
15d1ae7fbf
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue