From f9923fe72a21901f50289021d0a699455803b61a Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 20 Jan 2022 15:40:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=8D=E5=88=B6=E6=97=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009784 --user=刘瑞斌 [性能测试]复制一个有三个版本的用例A-复制当前最新版本的用例,复制的用例B有三个版本 https://www.tapd.cn/55049933/s/1095036 --- .../metersphere/performance/service/PerformanceTestService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 5c4818cd13..3da02acc9e 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -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());