fix(权限点): 兼容parent id数据
This commit is contained in:
parent
614b3289ea
commit
dfb5520408
@ -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, "不允许跨工作台");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user