fix(测试跟踪): 修复功能用例显示同个用例多个版本问题
--bug=1021904 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021904
This commit is contained in:
parent
927c229b91
commit
26c12aade1
|
@ -453,6 +453,7 @@ public class TestCaseService {
|
||||||
if (StringUtils.isBlank(testCase.getVersionId())) {
|
if (StringUtils.isBlank(testCase.getVersionId())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
testCase.setLatest(false);
|
||||||
TestCaseExample example = new TestCaseExample();
|
TestCaseExample example = new TestCaseExample();
|
||||||
example.createCriteria().andIdEqualTo(testCase.getId())
|
example.createCriteria().andIdEqualTo(testCase.getId())
|
||||||
.andVersionIdEqualTo(testCase.getVersionId());
|
.andVersionIdEqualTo(testCase.getVersionId());
|
||||||
|
|
Loading…
Reference in New Issue