非000000租户,根据当前用户的角色id过滤的菜单数据。
我当前登录用户就是000000租户的超级管理员角色
这里查询的时候就没有数据.
这是什么问题引起的?
SELECT
*
FROM
(
SELECT
id,
parent_id,
NAME AS title,
id AS "value",
id AS "key"
FROM
blade_menu
WHERE
category = 1
AND is_deleted = 0
AND id IN ( SELECT menu_id FROM blade_scope_data WHERE is_deleted = 0 AND menu_id IS NOT NULL )
ORDER BY
sort
) menu
UNION ALL
SELECT
id,
menu_id AS parent_id,
scope_name AS title,
id AS "value",
id AS "key"
FROM
blade_scope_data
WHERE
is_deleted = 0
AND menu_id IS NOT NULL
数据库里面blade_scope_data表没有数据。所以查不到。
扫一扫访问 Blade技术社区 移动端