From 1fcdf2cd954d7a5ee8dbc13c193327a34698f481 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 27 Oct 2021 14:18:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E5=85=B3=E8=81=94=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E6=97=B6=E4=BF=9D=E5=AD=98=E5=8E=9F=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=8E=8B=E5=8A=9B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/track/service/TestPlanLoadCaseService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java index 550d36972c..444ebab708 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java @@ -99,6 +99,11 @@ public class TestPlanLoadCaseService { t.setCreateTime(System.currentTimeMillis()); t.setUpdateTime(System.currentTimeMillis()); t.setOrder(nextOrder); + LoadTestWithBLOBs loadTest = loadTestMapper.selectByPrimaryKey(id); + if (loadTest != null) { + t.setTestResourcePoolId(loadTest.getTestResourcePoolId()); + t.setLoadConfiguration(loadTest.getLoadConfiguration()); + } nextOrder += 5000; testPlanLoadCaseMapper.insert(t); }