|
@@ -31,10 +31,11 @@
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
- h.description as description
|
|
|
|
|
|
+ h.description as description,
|
|
|
|
+ h.status as status
|
|
from sys_menu m
|
|
from sys_menu m
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
- LEFT JOIN hce_category h on m.menu_id = h.menu_id
|
|
|
|
|
|
+ inner JOIN hce_category h on m.menu_id = h.menu_id
|
|
where m.menu_type in ('M', 'C')
|
|
where m.menu_type in ('M', 'C')
|
|
and m.visible = 0
|
|
and m.visible = 0
|
|
and m.status = 0
|
|
and m.status = 0
|
|
@@ -58,13 +59,14 @@
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
- h.description as description
|
|
|
|
|
|
+ h.description as description,
|
|
|
|
+ h.status as status
|
|
from sys_menu m
|
|
from sys_menu m
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
left join sys_role ro on ur.role_id = ro.role_id
|
|
left join sys_role ro on ur.role_id = ro.role_id
|
|
left join sys_user u on ur.user_id = u.user_id
|
|
left join sys_user u on ur.user_id = u.user_id
|
|
- LEFT JOIN hce_category h on m.menu_id = h.menu_id
|
|
|
|
|
|
+ inner join hce_category h on m.menu_id = h.menu_id
|
|
where u.user_id = #{userId}
|
|
where u.user_id = #{userId}
|
|
and m.menu_type in ('M', 'C')
|
|
and m.menu_type in ('M', 'C')
|
|
and m.visible = 0
|
|
and m.visible = 0
|
|
@@ -91,11 +93,12 @@
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
- h.description as description
|
|
|
|
|
|
+ h.description as description,
|
|
|
|
+ h.status as status
|
|
FROM
|
|
FROM
|
|
sys_menu m
|
|
sys_menu m
|
|
JOIN sys_tenant_menu t on m.menu_id = t.menu_id
|
|
JOIN sys_tenant_menu t on m.menu_id = t.menu_id
|
|
- LEFT JOIN hce_category h on m.menu_id = h.menu_id
|
|
|
|
|
|
+ inner join hce_category h on m.menu_id = h.menu_id
|
|
WHERE m.menu_type IN ('M', 'C')
|
|
WHERE m.menu_type IN ('M', 'C')
|
|
and m.visible = 0
|
|
and m.visible = 0
|
|
and m.status = 0
|
|
and m.status = 0
|