From 6c1e7c57ca4148810c25f1284244998e0e2a6660 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 19 Jan 2022 14:09:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AF=BC=E5=85=A5):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9EHTTP=E6=8E=A5=E5=8F=A3=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E9=80=89=E6=8B=A9=E8=A6=86=E7=9B=96=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E8=A6=86=E7=9B=96mock=E6=9C=9F=E6=9C=9B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复非HTTP接口导入选择覆盖时未覆盖mock期望的bug --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index b84ec857af..574cf621a1 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -708,6 +708,7 @@ public class ApiDefinitionService { } apiDefinition.setOrder(sameRequest.get(0).getOrder()); reSetImportCasesApiId(cases, originId, apiDefinition.getId()); + reSetImportMocksApiId(mocks, originId, apiDefinition.getId(), apiDefinition.getNum()); apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition); }