Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/service/impl/RoleServiceImpl.java
@@ -196,8 +196,11 @@ } } if (Func.isEmpty(role.getParentId())) { role.setTenantId(AuthUtil.getTenantId()); role.setParentId(BladeConstant.TOP_PARENT_ID); // 前端传了是属于那个租户id下的角色 if(Func.isEmpty(role.getTenantId())){ role.setTenantId(AuthUtil.getTenantId()); } } if (role.getParentId() > 0) { Role parent = getById(role.getParentId());