fix(测试跟踪): 用例脑图保存报错

--bug=1018924 --user=陈建星 【测试跟踪】测试用例-脑图-编辑-保存报500 https://www.tapd.cn/55049933/s/1278354
This commit is contained in:
chenjianxing 2022-10-26 15:21:39 +08:00 committed by jianxing
parent cfbe544131
commit d8fbe2ca5e
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,9 @@ public class TestCaseService {
* @param testCase
*/
private void createNewVersionOrNot(EditTestCaseRequest testCase) {
if (StringUtils.isBlank(testCase.getVersionId())) {
return;
}
TestCaseExample example = new TestCaseExample();
example.createCriteria().andIdEqualTo(testCase.getId())
.andVersionIdEqualTo(testCase.getVersionId());