From 637a179f17cef1713a9b144321b01b17a164e7fc Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 21 Jan 2022 10:52:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=9C=BA=E6=99=AFnum=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiAutomationService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index d70eb0a322..fc0d2f3520 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -669,6 +669,7 @@ public class ApiAutomationService { element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition()); element.put("referenced", "REF"); } + element.put("id", scenarioWithBLOBs.getId()); element.put("num", scenarioWithBLOBs.getNum()); element.put("enable", enable); element.put("environmentEnable", environmentEnable); @@ -697,6 +698,7 @@ public class ApiAutomationService { element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition()); element.put("referenced", "REF"); } + element.put("id", scenarioWithBLOBs.getId()); element.put("enable", enable); element.put("environmentEnable", environmentEnable); element.put("num", scenarioWithBLOBs.getNum());