fix(测试跟踪): 修复创建测试用例后删除用例会删除列表中同名用例问题

--bug=1025830 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001025830
This commit is contained in:
guoyuqi 2023-04-27 18:59:11 +08:00 committed by fit2-zhao
parent e590cffa08
commit 364e01a9ed
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public class TestCaseService {
//新创建测试用例默认使用最新版本
request.setRefId(request.getId());
request.setVersionId(baseProjectVersionMapper.getDefaultVersion(request.getProjectId()));
} else if (StringUtils.isBlank(request.getRefId()) && StringUtils.isNotBlank(request.getVersionId())) {
} else if (StringUtils.isNotBlank(request.getVersionId())) {
//从版本选择直接创建
request.setRefId(request.getId());
}