mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 11:11:55 +08:00
12 lines
551 B
Java
12 lines
551 B
Java
|
-- 查询上级菜单、排序
|
||
|
SELECT parent_id, sort
|
||
|
INTO @parentId, @sort
|
||
|
FROM system_menu
|
||
|
WHERE name = '用户等级修改'
|
||
|
LIMIT 1;
|
||
|
-- 新增 按钮权限
|
||
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
||
|
VALUES ('用户积分修改', 'member:user:update-point', 3, @sort + 1, @parentId, '', '', '', 0);
|
||
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
||
|
VALUES ('用户余额修改', 'member:user:update-balance', 3, @sort + 2, @parentId, '', '', '', 0);
|