From 2d807f97cca3b7d675533ce3e4cb6b60ab83a2e2 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 24 Jan 2022 16:13:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=88=87=E6=8D=A2=E7=89=88=E6=9C=AC=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E5=88=87=E5=9B=9E=E5=8E=BB=EF=BC=8C=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E4=B8=80=E4=B8=AA=E5=9C=BA=E6=99=AF=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009780 --user=王孝刚 【接口测试】场景切换版本后再切回去,发现不是一个场景了 https://www.tapd.cn/55049933/s/1097384 --- .../java/io/metersphere/api/service/ApiAutomationService.java | 3 +++ 1 file changed, 3 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 b84f7cb4b6..70514b816c 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1930,6 +1930,9 @@ public class ApiAutomationService { api.setApiScenarioModuleId(request.getApiScenarioModuleId()); api.setModulePath(request.getModulePath()); api.setOrder(nextOrder += ServiceUtils.ORDER_STEP); + api.setCreateTime(System.currentTimeMillis()); + api.setUpdateTime(System.currentTimeMillis()); + api.setRefId(api.getId()); api.setNum(nextNum++); mapper.insert(api); if (i % 50 == 0)