member.sql 551 B

1234567891011
  1. -- 查询上级菜单、排序
  2. SELECT parent_id, sort
  3. INTO @parentId, @sort
  4. FROM system_menu
  5. WHERE name = '用户等级修改'
  6. LIMIT 1;
  7. -- 新增 按钮权限
  8. INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
  9. VALUES ('用户积分修改', 'member:user:update-point', 3, @sort + 1, @parentId, '', '', '', 0);
  10. INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
  11. VALUES ('用户余额修改', 'member:user:update-balance', 3, @sort + 2, @parentId, '', '', '', 0);