From a9c53afaea427c54b81883ac5ef6020cccf84877 Mon Sep 17 00:00:00 2001 From: Coooder-X <55648333+Coooder-X@users.noreply.github.com> Date: Wed, 7 Apr 2021 15:12:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=EF=BC=9A=E7=AC=AC=E4=B8=80=E6=AC=A1=20swagge?= =?UTF-8?q?r=20=E5=AF=BC=E5=85=A5=E5=90=8E=E7=A7=BB=E5=8A=A8=20module=20?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=EF=BC=8C=E5=86=8D=E6=AC=A1=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=90=8E=20module=20=E4=BD=8D=E7=BD=AE=E8=A2=AB=E8=BF=98?= =?UTF-8?q?=E5=8E=9F=20bug=20(#1865)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 2 ++ 1 file changed, 2 insertions(+) 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 eb3847aaf5..dedf77cb80 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -373,6 +373,8 @@ public class ApiDefinitionService { //如果存在则修改 apiDefinition.setId(sameRequest.get(0).getId()); String request = setImportHashTree(apiDefinition); + apiDefinition.setModuleId(sameRequest.get(0).getModuleId()); + apiDefinition.setModulePath(sameRequest.get(0).getModulePath()); apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition); apiDefinition.setRequest(request); importApiCase(apiDefinition, apiTestCaseMapper, apiTestImportRequest, false);