@ -139,44 +139,23 @@
<select id="allButtons" resultMap="menuResultMap">
SELECT
*
id,
parent_id,
CODE,
NAME,
alias,
path,
source,
action,
sort
FROM
blade_menu
WHERE
(
id IN ( SELECT parent_id FROM blade_menu WHERE is_deleted = 0 AND category = 2 )
UNION ALL
is_deleted = 0
AND category = 2
) menu
ORDER BY
category = 2 OR id IN ( SELECT parent_id FROM blade_menu WHERE is_deleted = 0 AND category = 2 )
)
AND is_deleted = 0
ORDER BY sort
</select>
<select id="buttons" resultMap="menuResultMap">