From dfb552040888822a69fcb79b96f2ce60639484bf Mon Sep 17 00:00:00 2001 From: zhansihu Date: Wed, 13 Sep 2023 13:53:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9D=83=E9=99=90=E7=82=B9):=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9parent=20id=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tyr/server/service/impl/PermissionPointServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tyr-server/src/main/java/cn/axzo/tyr/server/service/impl/PermissionPointServiceImpl.java b/tyr-server/src/main/java/cn/axzo/tyr/server/service/impl/PermissionPointServiceImpl.java index 09722f8a..fa043724 100644 --- a/tyr-server/src/main/java/cn/axzo/tyr/server/service/impl/PermissionPointServiceImpl.java +++ b/tyr-server/src/main/java/cn/axzo/tyr/server/service/impl/PermissionPointServiceImpl.java @@ -215,7 +215,7 @@ public class PermissionPointServiceImpl implements PermissionPointService { pathName.add(workspace.getName()); pathName.add(terminal.getName()); - if (vo.getParentId() == null || vo.getParentId() == 0) { + if (vo.getParentId() == null || vo.getParentId() < 1) { //没有parent直接挂在工作台下 vo.setParentName(terminal.getName()); vo.setPathName(pathName); @@ -394,7 +394,7 @@ public class PermissionPointServiceImpl implements PermissionPointService { return; } SaasFeature parent = null; - if (parentId != 0) { + if (parentId > 0) { parent = this.saasFeatureDao.getById(parentId); if (!StrUtil.equals(feature.getTerminal(), parent.getTerminal())) { throw new BizException(BaseCode.BAD_REQUEST, "不允许跨工作台");