fix: 修复性能测试复制时的问题

--bug=1009784 --user=刘瑞斌 [性能测试]复制一个有三个版本的用例A-复制当前最新版本的用例,复制的用例B有三个版本 https://www.tapd.cn/55049933/s/1095036
This commit is contained in:
CaptainB 2022-01-20 15:40:21 +08:00 committed by song-tianyang
parent d1b8940a25
commit 95569376ed
1 changed files with 1 additions and 0 deletions

View File

@ -576,6 +576,7 @@ public class PerformanceTestService {
copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId());
copy.setNum(getNextNum(copy.getProjectId()));
copy.setRefId(copy.getId());
loadTestMapper.insert(copy);
// copy test file
copyLoadTestFiles(request.getId(), copy.getId());