fix(测试跟踪): 修复功能用例显示同个用例多个版本问题

--bug=1021904 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021904
This commit is contained in:
guoyuqi 2023-01-11 19:17:41 +08:00 committed by xiaomeinvG
parent 9731236766
commit dbffccd559
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ public class TestCaseService {
if (StringUtils.isBlank(testCase.getVersionId())) {
return;
}
testCase.setLatest(false);
TestCaseExample example = new TestCaseExample();
example.createCriteria().andIdEqualTo(testCase.getId())
.andVersionIdEqualTo(testCase.getVersionId());