From 09bc52347bcbbc26b68c9330fc058339dda4aeac Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 20 Dec 2022 19:04:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC=E5=AF=BC=E5=85=A5=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E6=A8=A1=E5=9D=97=E5=8A=A0refId=E7=9A=84?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021045--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021045 --- .../service/definition/ApiDefinitionImportUtilService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionImportUtilService.java b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionImportUtilService.java index f9aac4a518..db1f66375a 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionImportUtilService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionImportUtilService.java @@ -532,6 +532,7 @@ public class ApiDefinitionImportUtilService { updateApiList.add(definitionWithBLOBs); } } + apiDefinitionWithBLOBs.setRefId(latestApi.getRefId()); apiDefinitionWithBLOBs.setVersionId("trash"); } else { addNewVersionApi(apiDefinitionWithBLOBs, latestApi, "update");