就业援助-菜单权限.sql 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. -- ============================================================
  2. -- 就业一湛通服务平台 - 就业援助模块 菜单权限SQL(达梦数据库版)
  3. -- 菜单层级:就业援助 > 初步符合条件人员 / 就业援助管理
  4. -- 注意:达梦保留字 name/description/status 用双引号包围
  5. -- ============================================================
  6. -- ============================================================
  7. -- 清理旧数据(兼容重复执行)
  8. -- 必须先删角色授权,再删按钮权限,最后删菜单
  9. -- ============================================================
  10. -- 1. 删除已插入的角色授权
  11. DELETE FROM sys_role_permission WHERE permission_id IN (
  12. '178060100000200', '178060100000210', '178060100000220',
  13. '178060100000211', '178060100000212', '178060100000213',
  14. '178060100000214', '178060100000215', '178060100000216',
  15. '178060100000221', '178060100000222', '178060100000223',
  16. '178060100000224', '178060100000225', '178060100000226'
  17. );
  18. -- 2. 删除已插入的按钮权限
  19. DELETE FROM sys_permission WHERE id IN (
  20. '178060100000211', '178060100000212', '178060100000213',
  21. '178060100000214', '178060100000215', '178060100000216',
  22. '178060100000221', '178060100000222', '178060100000223',
  23. '178060100000224', '178060100000225', '178060100000226'
  24. );
  25. -- 3. 删除已插入的页面菜单
  26. DELETE FROM sys_permission WHERE id IN (
  27. '178060100000200', '178060100000210', '178060100000220'
  28. );
  29. -- ============================================================
  30. -- 重新插入菜单权限
  31. -- ============================================================
  32. -- 一级菜单:就业援助
  33. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  34. VALUES ('178060100000200', '', '就业援助', '/employmentAssistance', 'layouts/default/index', 1, '', NULL, 0, NULL, '0', 2.20, 0, 'ant-design:heart-outlined', 0, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  35. -- 二级菜单:初步符合条件人员
  36. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  37. VALUES ('178060100000210', '178060100000200', '初步符合条件人员', '/employmentAssistance/preliminaryEligibleList', 'preliminaryeligible/PreliminaryEligibleList', 1, '', NULL, 1, NULL, '0', 1.00, 0, 'ant-design:user-outlined', 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  38. -- 二级菜单:就业援助管理
  39. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  40. VALUES ('178060100000220', '178060100000200', '就业援助管理', '/employmentAssistance/employmentAssistanceList', 'employmentassistance/EmploymentAssistanceList', 1, '', NULL, 1, NULL, '0', 2.00, 0, 'ant-design:team-outlined', 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  41. -- ============================================================
  42. -- 初步符合条件人员 - 按钮权限
  43. -- ============================================================
  44. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  45. VALUES ('178060100000211', '178060100000210', '添加初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  46. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  47. VALUES ('178060100000212', '178060100000210', '编辑初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  48. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  49. VALUES ('178060100000213', '178060100000210', '删除初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  50. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  51. VALUES ('178060100000214', '178060100000210', '批量删除初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  52. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  53. VALUES ('178060100000215', '178060100000210', '导出excel_初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  54. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  55. VALUES ('178060100000216', '178060100000210', '导入excel_初步符合条件人员', NULL, NULL, 0, '', NULL, 2, 'preliminary_eligible:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  56. -- ============================================================
  57. -- 就业援助管理 - 按钮权限
  58. -- ============================================================
  59. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  60. VALUES ('178060100000221', '178060100000220', '添加就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  61. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  62. VALUES ('178060100000222', '178060100000220', '编辑就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  63. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  64. VALUES ('178060100000223', '178060100000220', '删除就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  65. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  66. VALUES ('178060100000224', '178060100000220', '批量删除就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  67. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  68. VALUES ('178060100000225', '178060100000220', '导出excel_就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  69. INSERT INTO sys_permission (id, parent_id, "NAME", url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, "DESCRIPTION", create_by, create_time, update_by, update_time, del_flag, rule_flag, "STATUS", internal_or_external)
  70. VALUES ('178060100000226', '178060100000220', '导入excel_就业援助管理', NULL, NULL, 0, '', NULL, 2, 'employment_assistance:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2026-06-09 10:00:00', NULL, NULL, 0, 0, 1, 0);
  71. -- ============================================================
  72. -- 角色授权(admin角色 - f6817f48af4fb3af11b9e8bf182f618b)
  73. -- ============================================================
  74. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  75. VALUES ('178060100000230', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000200', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  76. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  77. VALUES ('178060100000231', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000210', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  78. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  79. VALUES ('178060100000232', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000220', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  80. -- 初步符合条件人员按钮权限
  81. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  82. VALUES ('178060100000233', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000211', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  83. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  84. VALUES ('178060100000234', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000212', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  85. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  86. VALUES ('178060100000235', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000213', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  87. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  88. VALUES ('178060100000236', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000214', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  89. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  90. VALUES ('178060100000237', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000215', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  91. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  92. VALUES ('178060100000238', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000216', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  93. -- 就业援助管理按钮权限
  94. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  95. VALUES ('178060100000239', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000221', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  96. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  97. VALUES ('178060100000240', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000222', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  98. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  99. VALUES ('178060100000241', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000223', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  100. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  101. VALUES ('178060100000242', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000224', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  102. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  103. VALUES ('178060100000243', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000225', NULL, '2026-06-09 10:00:00', '127.0.0.1');
  104. INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip)
  105. VALUES ('178060100000244', 'f6817f48af4fb3af11b9e8bf182f618b', '178060100000226', NULL, '2026-06-09 10:00:00', '127.0.0.1');