fix: 修复性能测试复制时的问题
--bug=1009784 --user=刘瑞斌 [性能测试]复制一个有三个版本的用例A-复制当前最新版本的用例,复制的用例B有三个版本 https://www.tapd.cn/55049933/s/1095036
This commit is contained in:
parent
858bd86e5e
commit
f9923fe72a
|
@ -576,6 +576,7 @@ public class PerformanceTestService {
|
||||||
copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
|
copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
|
||||||
copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId());
|
copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId());
|
||||||
copy.setNum(getNextNum(copy.getProjectId()));
|
copy.setNum(getNextNum(copy.getProjectId()));
|
||||||
|
copy.setRefId(copy.getId());
|
||||||
loadTestMapper.insert(copy);
|
loadTestMapper.insert(copy);
|
||||||
// copy test file
|
// copy test file
|
||||||
copyLoadTestFiles(request.getId(), copy.getId());
|
copyLoadTestFiles(request.getId(), copy.getId());
|
||||||
|
|
Loading…
Reference in New Issue