From f16ac488bf6dcf76703e09cff94a1d07765551cc Mon Sep 17 00:00:00 2001 From: zhangdahai112 <46101698+zhangdahai112@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:14:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/api/service/ApiModuleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java index dcd9369c8d..ec74c516f4 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java @@ -308,7 +308,7 @@ public class ApiModuleService extends NodeTreeService { criteria.andProtocolEqualTo(node.getProtocol()); } //同一个模块下不能有相同名字的子模块 - if(StringUtils.isNotBlank(node.getParentId())){ + if (StringUtils.isNotBlank(node.getParentId())) { criteria.andParentIdEqualTo(node.getParentId()); } return apiModuleMapper.selectByExample(example);