sys_menu_slaj_modules.sql 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. -- ============================================================================
  2. -- sys_menu SQL for 教育培训 + 监督检查 + 标准化管理 三个模块
  3. -- PostgreSQL
  4. -- ============================================================================
  5. -- 使用说明:
  6. -- 1. 先确认父级菜单ID (查找 parent_menu):
  7. -- SELECT menu_id, menu_name FROM sys_menu WHERE menu_name LIKE '%安全%';
  8. -- 2. 设置下面 @parent_id 为父级菜单ID(通常为 hazard/acci/hidd 的同级目录ID)
  9. -- 3. 如果需要在根目录下新建,则设置 @parent_id = 0
  10. -- 4. 本脚本使用 DO $$ ... $$ 块,一次性插入所有菜单和按钮
  11. -- ============================================================================
  12. -- 注意:执行前请先修改 parent_menu_id 的值,替换下面三处 0 为实际的父级菜单ID
  13. -- 查询现有 slaj 模块的父级: SELECT menu_id, parent_id, menu_name FROM sys_menu WHERE menu_name IN ('事故管理','危险源管理','隐患管理');
  14. DO $$
  15. DECLARE
  16. parent_menu_id BIGINT := 0; -- ★ 请修改为实际的父级菜单ID ★
  17. -- 教育培训
  18. eutr_dir_id BIGINT;
  19. eutr_cour_id BIGINT;
  20. eutr_courcate_id BIGINT;
  21. eutr_courrec_id BIGINT;
  22. eutr_plan_id BIGINT;
  23. eutr_record_id BIGINT;
  24. eutr_exam_id BIGINT;
  25. eutr_examstra_id BIGINT;
  26. eutr_eq_id BIGINT;
  27. eutr_tqueopt_id BIGINT;
  28. eutr_eqansw_id BIGINT;
  29. eutr_courtoeq_id BIGINT;
  30. eutr_subject_id BIGINT;
  31. eutr_offlrec_id BIGINT;
  32. -- 监督检查
  33. sins_dir_id BIGINT;
  34. sins_objsins_id BIGINT;
  35. sins_sche_id BIGINT;
  36. sins_grop_id BIGINT;
  37. sins_report_id BIGINT;
  38. sins_expert_id BIGINT;
  39. sins_case_id BIGINT;
  40. sins_bad_id BIGINT;
  41. sins_engres_id BIGINT;
  42. sins_relengorg_id BIGINT;
  43. sins_relsinstoorg_id BIGINT;
  44. sins_relgrouptoexpe_id BIGINT;
  45. sins_relgrouptopers_id BIGINT;
  46. sins_relgrouptowiun_id BIGINT;
  47. sins_relsblz_id BIGINT;
  48. sins_sawf_id BIGINT;
  49. -- 标准化管理
  50. stan_dir_id BIGINT;
  51. stan_cert_id BIGINT;
  52. stan_certcha_id BIGINT;
  53. stan_certext_id BIGINT;
  54. stan_certrev_id BIGINT;
  55. stan_revirec_id BIGINT;
  56. stan_score_id BIGINT;
  57. stan_selfeva_id BIGINT;
  58. stan_scenrevi_id BIGINT;
  59. stan_firsttria_id BIGINT;
  60. stan_appl_id BIGINT;
  61. stan_revi_id BIGINT;
  62. stan_puno_id BIGINT;
  63. max_order INT;
  64. BEGIN
  65. -- ========================================================================
  66. -- 清理已存在的三个模块菜单(支持重复执行,先删子再删父)
  67. -- ========================================================================
  68. DELETE FROM sys_menu WHERE perms LIKE 'eutr:%'; -- 教育培训 C+F
  69. DELETE FROM sys_menu WHERE perms LIKE 'sins:%'; -- 监督检查 C+F
  70. DELETE FROM sys_menu WHERE perms LIKE 'stan:%'; -- 标准化管理 C+F
  71. DELETE FROM sys_menu WHERE path IN ('eutr','sins','stan') AND menu_type = 'M'; -- 三个目录
  72. -- 重置序列,修复因先前执行导致的ID冲突
  73. PERFORM setval('sys_menu_menu_id_seq', COALESCE((SELECT MAX(menu_id) FROM sys_menu), 0));
  74. -- 获取当前最大排序号
  75. SELECT COALESCE(MAX(order_num), 0) INTO max_order FROM sys_menu WHERE parent_id = parent_menu_id;
  76. -- ============================================================================
  77. -- 一、教育培训模块 (eutr)
  78. -- ============================================================================
  79. max_order := max_order + 1;
  80. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  81. VALUES ('教育培训', parent_menu_id, max_order, 'eutr', NULL, 1, 0, 'M', '0', '0', '', 'education', 'admin', now())
  82. RETURNING menu_id INTO eutr_dir_id;
  83. -- 课程管理
  84. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  85. VALUES ('课程管理', eutr_dir_id, 1, 'cour', 'slaj/eutr/cour/index', 1, 0, 'C', '0', '0', 'eutr:objcour:list', 'list', 'admin', now())
  86. RETURNING menu_id INTO eutr_cour_id;
  87. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('课程新增', eutr_cour_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:objcour:add', '#', 'admin', now());
  88. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('课程修改', eutr_cour_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:objcour:edit', '#', 'admin', now());
  89. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('课程删除', eutr_cour_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:objcour:remove', '#', 'admin', now());
  90. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('课程导出', eutr_cour_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:objcour:export', '#', 'admin', now());
  91. -- 课程类别
  92. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  93. VALUES ('课程类别', eutr_dir_id, 2, 'courcate', 'slaj/eutr/courcate/index', 1, 0, 'C', '0', '0', 'eutr:courcate:list', 'tree-table', 'admin', now())
  94. RETURNING menu_id INTO eutr_courcate_id;
  95. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('类别新增', eutr_courcate_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:courcate:add', '#', 'admin', now());
  96. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('类别修改', eutr_courcate_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:courcate:edit', '#', 'admin', now());
  97. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('类别删除', eutr_courcate_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:courcate:remove', '#', 'admin', now());
  98. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('类别导出', eutr_courcate_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:courcate:export', '#', 'admin', now());
  99. -- 学习记录
  100. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  101. VALUES ('学习记录', eutr_dir_id, 3, 'courrec', 'slaj/eutr/courrec/index', 1, 0, 'C', '0', '0', 'eutr:courrec:list', 'log', 'admin', now())
  102. RETURNING menu_id INTO eutr_courrec_id;
  103. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录新增', eutr_courrec_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:courrec:add', '#', 'admin', now());
  104. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录修改', eutr_courrec_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:courrec:edit', '#', 'admin', now());
  105. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录删除', eutr_courrec_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:courrec:remove', '#', 'admin', now());
  106. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录导出', eutr_courrec_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:courrec:export', '#', 'admin', now());
  107. -- 培训计划
  108. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  109. VALUES ('培训计划', eutr_dir_id, 4, 'plan', 'slaj/eutr/plan/index', 1, 0, 'C', '0', '0', 'eutr:plan:list', 'date', 'admin', now())
  110. RETURNING menu_id INTO eutr_plan_id;
  111. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('计划新增', eutr_plan_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:plan:add', '#', 'admin', now());
  112. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('计划修改', eutr_plan_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:plan:edit', '#', 'admin', now());
  113. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('计划删除', eutr_plan_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:plan:remove', '#', 'admin', now());
  114. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('计划导出', eutr_plan_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:plan:export', '#', 'admin', now());
  115. -- 培训记录
  116. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  117. VALUES ('培训记录', eutr_dir_id, 5, 'record', 'slaj/eutr/record/index', 1, 0, 'C', '0', '0', 'eutr:record:list', 'documentation', 'admin', now())
  118. RETURNING menu_id INTO eutr_record_id;
  119. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录新增', eutr_record_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:record:add', '#', 'admin', now());
  120. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录修改', eutr_record_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:record:edit', '#', 'admin', now());
  121. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录删除', eutr_record_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:record:remove', '#', 'admin', now());
  122. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('记录导出', eutr_record_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:record:export', '#', 'admin', now());
  123. -- 考试管理
  124. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  125. VALUES ('考试管理', eutr_dir_id, 6, 'exam', 'slaj/eutr/exam/index', 1, 0, 'C', '0', '0', 'eutr:exam:list', 'edit', 'admin', now())
  126. RETURNING menu_id INTO eutr_exam_id;
  127. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('考试新增', eutr_exam_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:exam:add', '#', 'admin', now());
  128. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('考试修改', eutr_exam_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:exam:edit', '#', 'admin', now());
  129. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('考试删除', eutr_exam_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:exam:remove', '#', 'admin', now());
  130. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('考试导出', eutr_exam_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:exam:export', '#', 'admin', now());
  131. -- 考试策略
  132. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  133. VALUES ('考试策略', eutr_dir_id, 7, 'examstra', 'slaj/eutr/examstra/index', 1, 0, 'C', '0', '0', 'eutr:examstra:list', 'component', 'admin', now())
  134. RETURNING menu_id INTO eutr_examstra_id;
  135. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('策略新增', eutr_examstra_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:examstra:add', '#', 'admin', now());
  136. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('策略修改', eutr_examstra_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:examstra:edit', '#', 'admin', now());
  137. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('策略删除', eutr_examstra_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:examstra:remove', '#', 'admin', now());
  138. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('策略导出', eutr_examstra_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:examstra:export', '#', 'admin', now());
  139. -- 题库管理
  140. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  141. VALUES ('题库管理', eutr_dir_id, 8, 'eq', 'slaj/eutr/eq/index', 1, 0, 'C', '0', '0', 'eutr:eq:list', 'form', 'admin', now())
  142. RETURNING menu_id INTO eutr_eq_id;
  143. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('试题新增', eutr_eq_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:eq:add', '#', 'admin', now());
  144. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('试题修改', eutr_eq_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:eq:edit', '#', 'admin', now());
  145. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('试题删除', eutr_eq_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:eq:remove', '#', 'admin', now());
  146. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('试题导出', eutr_eq_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:eq:export', '#', 'admin', now());
  147. -- 题目选项
  148. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  149. VALUES ('题目选项', eutr_dir_id, 9, 'tqueopt', 'slaj/eutr/tqueopt/index', 1, 0, 'C', '0', '0', 'eutr:tqueopt:list', 'radio', 'admin', now())
  150. RETURNING menu_id INTO eutr_tqueopt_id;
  151. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('选项新增', eutr_tqueopt_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:tqueopt:add', '#', 'admin', now());
  152. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('选项修改', eutr_tqueopt_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:tqueopt:edit', '#', 'admin', now());
  153. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('选项删除', eutr_tqueopt_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:tqueopt:remove', '#', 'admin', now());
  154. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('选项导出', eutr_tqueopt_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:tqueopt:export', '#', 'admin', now());
  155. -- 答题记录
  156. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  157. VALUES ('答题记录', eutr_dir_id, 10, 'eqansw', 'slaj/eutr/eqansw/index', 1, 0, 'C', '0', '0', 'eutr:eqansw:list', 'tab', 'admin', now())
  158. RETURNING menu_id INTO eutr_eqansw_id;
  159. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('答记新增', eutr_eqansw_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:eqansw:add', '#', 'admin', now());
  160. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('答记修改', eutr_eqansw_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:eqansw:edit', '#', 'admin', now());
  161. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('答记删除', eutr_eqansw_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:eqansw:remove', '#', 'admin', now());
  162. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('答记导出', eutr_eqansw_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:eqansw:export', '#', 'admin', now());
  163. -- 课程试题关联
  164. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  165. VALUES ('课程试题关联', eutr_dir_id, 11, 'courtoeq', 'slaj/eutr/courtoeq/index', 1, 0, 'C', '0', '0', 'eutr:courtoeq:list', 'link', 'admin', now())
  166. RETURNING menu_id INTO eutr_courtoeq_id;
  167. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', eutr_courtoeq_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:courtoeq:add', '#', 'admin', now());
  168. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', eutr_courtoeq_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:courtoeq:edit', '#', 'admin', now());
  169. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', eutr_courtoeq_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:courtoeq:remove', '#', 'admin', now());
  170. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', eutr_courtoeq_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:courtoeq:export', '#', 'admin', now());
  171. -- 课程科目关联
  172. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  173. VALUES ('课程科目关联', eutr_dir_id, 12, 'subjectofcour', 'slaj/eutr/subjectofcour/index', 1, 0, 'C', '0', '0', 'eutr:subjectofcour:list', 'nested', 'admin', now())
  174. RETURNING menu_id INTO eutr_subject_id;
  175. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', eutr_subject_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:subjectofcour:add', '#', 'admin', now());
  176. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', eutr_subject_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:subjectofcour:edit', '#', 'admin', now());
  177. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', eutr_subject_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:subjectofcour:remove', '#', 'admin', now());
  178. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', eutr_subject_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:subjectofcour:export', '#', 'admin', now());
  179. -- 线下培训记录
  180. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  181. VALUES ('线下培训记录', eutr_dir_id, 13, 'offlrec', 'slaj/eutr/offlrec/index', 1, 0, 'C', '0', '0', 'eutr:offlrec:list', 'example', 'admin', now())
  182. RETURNING menu_id INTO eutr_offlrec_id;
  183. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('线下新增', eutr_offlrec_id, 1, '', '', 1, 0, 'F', '0', '0', 'eutr:offlrec:add', '#', 'admin', now());
  184. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('线下修改', eutr_offlrec_id, 2, '', '', 1, 0, 'F', '0', '0', 'eutr:offlrec:edit', '#', 'admin', now());
  185. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('线下删除', eutr_offlrec_id, 3, '', '', 1, 0, 'F', '0', '0', 'eutr:offlrec:remove', '#', 'admin', now());
  186. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('线下导出', eutr_offlrec_id, 4, '', '', 1, 0, 'F', '0', '0', 'eutr:offlrec:export', '#', 'admin', now());
  187. -- ============================================================================
  188. -- 二、监督检查模块 (sins)
  189. -- ============================================================================
  190. max_order := max_order + 1;
  191. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  192. VALUES ('监督检查', parent_menu_id, max_order, 'sins', NULL, 1, 0, 'M', '0', '0', '', 'monitor', 'admin', now())
  193. RETURNING menu_id INTO sins_dir_id;
  194. -- 安全检查方案
  195. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  196. VALUES ('安全检查方案', sins_dir_id, 1, 'objsins', 'slaj/sins/objsins/index', 1, 0, 'C', '0', '0', 'sins:objsins:list', 'build', 'admin', now())
  197. RETURNING menu_id INTO sins_objsins_id;
  198. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('方案新增', sins_objsins_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:objsins:add', '#', 'admin', now());
  199. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('方案修改', sins_objsins_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:objsins:edit', '#', 'admin', now());
  200. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('方案删除', sins_objsins_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:objsins:remove', '#', 'admin', now());
  201. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('方案导出', sins_objsins_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:objsins:export', '#', 'admin', now());
  202. -- 检查方案明细
  203. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  204. VALUES ('检查方案明细', sins_dir_id, 2, 'sinssche', 'slaj/sins/sinssche/index', 1, 0, 'C', '0', '0', 'sins:sinssche:list', 'dict', 'admin', now())
  205. RETURNING menu_id INTO sins_sche_id;
  206. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('明细新增', sins_sche_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:sinssche:add', '#', 'admin', now());
  207. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('明细修改', sins_sche_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:sinssche:edit', '#', 'admin', now());
  208. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('明细删除', sins_sche_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:sinssche:remove', '#', 'admin', now());
  209. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('明细导出', sins_sche_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:sinssche:export', '#', 'admin', now());
  210. -- 检查组
  211. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  212. VALUES ('检查组', sins_dir_id, 3, 'sinsschegrop', 'slaj/sins/sinsschegrop/index', 1, 0, 'C', '0', '0', 'sins:sinsschegrop:list', 'peoples', 'admin', now())
  213. RETURNING menu_id INTO sins_grop_id;
  214. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('组新增', sins_grop_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:sinsschegrop:add', '#', 'admin', now());
  215. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('组修改', sins_grop_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:sinsschegrop:edit', '#', 'admin', now());
  216. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('组删除', sins_grop_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:sinsschegrop:remove', '#', 'admin', now());
  217. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('组导出', sins_grop_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:sinsschegrop:export', '#', 'admin', now());
  218. -- 检查报告
  219. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  220. VALUES ('检查报告', sins_dir_id, 4, 'sinsreport', 'slaj/sins/sinsreport/index', 1, 0, 'C', '0', '0', 'sins:sinsreport:list', 'report', 'admin', now())
  221. RETURNING menu_id INTO sins_report_id;
  222. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('报告新增', sins_report_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:sinsreport:add', '#', 'admin', now());
  223. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('报告修改', sins_report_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:sinsreport:edit', '#', 'admin', now());
  224. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('报告删除', sins_report_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:sinsreport:remove', '#', 'admin', now());
  225. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('报告导出', sins_report_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:sinsreport:export', '#', 'admin', now());
  226. -- 专家信息
  227. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  228. VALUES ('专家信息', sins_dir_id, 5, 'objexpert', 'slaj/sins/objexpert/index', 1, 0, 'C', '0', '0', 'sins:objexpert:list', 'user', 'admin', now())
  229. RETURNING menu_id INTO sins_expert_id;
  230. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('专家新增', sins_expert_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:objexpert:add', '#', 'admin', now());
  231. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('专家修改', sins_expert_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:objexpert:edit', '#', 'admin', now());
  232. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('专家删除', sins_expert_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:objexpert:remove', '#', 'admin', now());
  233. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('专家导出', sins_expert_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:objexpert:export', '#', 'admin', now());
  234. -- 执法案件
  235. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  236. VALUES ('执法案件', sins_dir_id, 6, 'objcase', 'slaj/sins/objcase/index', 1, 0, 'C', '0', '0', 'sins:objcase:list', 'bug', 'admin', now())
  237. RETURNING menu_id INTO sins_case_id;
  238. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('案件新增', sins_case_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:objcase:add', '#', 'admin', now());
  239. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('案件修改', sins_case_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:objcase:edit', '#', 'admin', now());
  240. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('案件删除', sins_case_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:objcase:remove', '#', 'admin', now());
  241. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('案件导出', sins_case_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:objcase:export', '#', 'admin', now());
  242. -- 不良行为记录
  243. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  244. VALUES ('不良行为记录', sins_dir_id, 7, 'wiunberebad', 'slaj/sins/wiunberebad/index', 1, 0, 'C', '0', '0', 'sins:wiunberebad:list', 'warning', 'admin', now())
  245. RETURNING menu_id INTO sins_bad_id;
  246. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('行为新增', sins_bad_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:wiunberebad:add', '#', 'admin', now());
  247. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('行为修改', sins_bad_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:wiunberebad:edit', '#', 'admin', now());
  248. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('行为删除', sins_bad_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:wiunberebad:remove', '#', 'admin', now());
  249. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('行为导出', sins_bad_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:wiunberebad:export', '#', 'admin', now());
  250. -- 水库工程属性
  251. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  252. VALUES ('水库工程属性', sins_dir_id, 8, 'attengres', 'slaj/sins/attengres/index', 1, 0, 'C', '0', '0', 'sins:attengres:list', 'guide', 'admin', now())
  253. RETURNING menu_id INTO sins_engres_id;
  254. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('工程新增', sins_engres_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:attengres:add', '#', 'admin', now());
  255. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('工程修改', sins_engres_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:attengres:edit', '#', 'admin', now());
  256. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('工程删除', sins_engres_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:attengres:remove', '#', 'admin', now());
  257. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('工程导出', sins_engres_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:attengres:export', '#', 'admin', now());
  258. -- 工程机构关联
  259. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  260. VALUES ('工程机构关联', sins_dir_id, 9, 'relengorg', 'slaj/sins/relengorg/index', 1, 0, 'C', '0', '0', 'sins:relengorg:list', 'connection', 'admin', now())
  261. RETURNING menu_id INTO sins_relengorg_id;
  262. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', sins_relengorg_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relengorg:add', '#', 'admin', now());
  263. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', sins_relengorg_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relengorg:edit', '#', 'admin', now());
  264. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', sins_relengorg_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relengorg:remove', '#', 'admin', now());
  265. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', sins_relengorg_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relengorg:export', '#', 'admin', now());
  266. -- 检查方案机构关联
  267. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  268. VALUES ('检查方案机构关联', sins_dir_id, 10, 'relsinstoorg', 'slaj/sins/relsinstoorg/index', 1, 0, 'C', '0', '0', 'sins:relsinstoorg:list', 'cascader', 'admin', now())
  269. RETURNING menu_id INTO sins_relsinstoorg_id;
  270. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', sins_relsinstoorg_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relsinstoorg:add', '#', 'admin', now());
  271. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', sins_relsinstoorg_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relsinstoorg:edit', '#', 'admin', now());
  272. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', sins_relsinstoorg_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relsinstoorg:remove', '#', 'admin', now());
  273. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', sins_relsinstoorg_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relsinstoorg:export', '#', 'admin', now());
  274. -- 检查组专家关联
  275. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  276. VALUES ('检查组专家关联', sins_dir_id, 11, 'relsinsgrouptoexpe', 'slaj/sins/relsinsgrouptoexpe/index', 1, 0, 'C', '0', '0', 'sins:relsinsgrouptoexpe:list', 'user', 'admin', now())
  277. RETURNING menu_id INTO sins_relgrouptoexpe_id;
  278. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', sins_relgrouptoexpe_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptoexpe:add', '#', 'admin', now());
  279. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', sins_relgrouptoexpe_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptoexpe:edit', '#', 'admin', now());
  280. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', sins_relgrouptoexpe_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptoexpe:remove', '#', 'admin', now());
  281. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', sins_relgrouptoexpe_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptoexpe:export', '#', 'admin', now());
  282. -- 检查组人员关联
  283. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  284. VALUES ('检查组人员关联', sins_dir_id, 12, 'relsinsgrouptopers', 'slaj/sins/relsinsgrouptopers/index', 1, 0, 'C', '0', '0', 'sins:relsinsgrouptopers:list', 'people', 'admin', now())
  285. RETURNING menu_id INTO sins_relgrouptopers_id;
  286. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', sins_relgrouptopers_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptopers:add', '#', 'admin', now());
  287. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', sins_relgrouptopers_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptopers:edit', '#', 'admin', now());
  288. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', sins_relgrouptopers_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptopers:remove', '#', 'admin', now());
  289. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', sins_relgrouptopers_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptopers:export', '#', 'admin', now());
  290. -- 检查组安全元素关联
  291. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  292. VALUES ('检查组安全元素关联', sins_dir_id, 13, 'relsinsgrouptowiun', 'slaj/sins/relsinsgrouptowiun/index', 1, 0, 'C', '0', '0', 'sins:relsinsgrouptowiun:list', 'validCode', 'admin', now())
  293. RETURNING menu_id INTO sins_relgrouptowiun_id;
  294. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联新增', sins_relgrouptowiun_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptowiun:add', '#', 'admin', now());
  295. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联修改', sins_relgrouptowiun_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptowiun:edit', '#', 'admin', now());
  296. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联删除', sins_relgrouptowiun_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptowiun:remove', '#', 'admin', now());
  297. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('关联导出', sins_relgrouptowiun_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relsinsgrouptowiun:export', '#', 'admin', now());
  298. -- SBLZ配置
  299. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  300. VALUES ('SBLZ配置', sins_dir_id, 14, 'relsblzconfig', 'slaj/sins/relsblzconfig/index', 1, 0, 'C', '0', '0', 'sins:relsblzconfig:list', 'system', 'admin', now())
  301. RETURNING menu_id INTO sins_relsblz_id;
  302. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('配置新增', sins_relsblz_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:relsblzconfig:add', '#', 'admin', now());
  303. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('配置修改', sins_relsblz_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:relsblzconfig:edit', '#', 'admin', now());
  304. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('配置删除', sins_relsblz_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:relsblzconfig:remove', '#', 'admin', now());
  305. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('配置导出', sins_relsblz_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:relsblzconfig:export', '#', 'admin', now());
  306. -- SAWF信用安全评估
  307. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  308. VALUES ('SAWF信用安全评估', sins_dir_id, 15, 'sawfcredsapr', 'slaj/sins/sawfcredsapr/index', 1, 0, 'C', '0', '0', 'sins:sawfcredsapr:list', 'star', 'admin', now())
  309. RETURNING menu_id INTO sins_sawf_id;
  310. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评估新增', sins_sawf_id, 1, '', '', 1, 0, 'F', '0', '0', 'sins:sawfcredsapr:add', '#', 'admin', now());
  311. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评估修改', sins_sawf_id, 2, '', '', 1, 0, 'F', '0', '0', 'sins:sawfcredsapr:edit', '#', 'admin', now());
  312. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评估删除', sins_sawf_id, 3, '', '', 1, 0, 'F', '0', '0', 'sins:sawfcredsapr:remove', '#', 'admin', now());
  313. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评估导出', sins_sawf_id, 4, '', '', 1, 0, 'F', '0', '0', 'sins:sawfcredsapr:export', '#', 'admin', now());
  314. -- ============================================================================
  315. -- 三、标准化管理模块 (stan)
  316. -- ============================================================================
  317. max_order := max_order + 1;
  318. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  319. VALUES ('标准化管理', parent_menu_id, max_order, 'stan', NULL, 1, 0, 'M', '0', '0', '', 'certificate', 'admin', now())
  320. RETURNING menu_id INTO stan_dir_id;
  321. -- 标准化证书
  322. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  323. VALUES ('标准化证书', stan_dir_id, 1, 'stancert', 'slaj/stan/stancert/index', 1, 0, 'C', '0', '0', 'stan:stancert:list', 'certificate', 'admin', now())
  324. RETURNING menu_id INTO stan_cert_id;
  325. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('证书新增', stan_cert_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stancert:add', '#', 'admin', now());
  326. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('证书修改', stan_cert_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stancert:edit', '#', 'admin', now());
  327. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('证书删除', stan_cert_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stancert:remove', '#', 'admin', now());
  328. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('证书导出', stan_cert_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stancert:export', '#', 'admin', now());
  329. -- 证书变更申请
  330. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  331. VALUES ('证书变更申请', stan_dir_id, 2, 'stancertchaappl', 'slaj/stan/stancertchaappl/index', 1, 0, 'C', '0', '0', 'stan:stancertchaappl:list', 'edit', 'admin', now())
  332. RETURNING menu_id INTO stan_certcha_id;
  333. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('变更新增', stan_certcha_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stancertchaappl:add', '#', 'admin', now());
  334. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('变更修改', stan_certcha_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stancertchaappl:edit', '#', 'admin', now());
  335. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('变更删除', stan_certcha_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stancertchaappl:remove', '#', 'admin', now());
  336. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('变更导出', stan_certcha_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stancertchaappl:export', '#', 'admin', now());
  337. -- 证书延期申请
  338. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  339. VALUES ('证书延期申请', stan_dir_id, 3, 'stancertextappl', 'slaj/stan/stancertextappl/index', 1, 0, 'C', '0', '0', 'stan:stancertextappl:list', 'time-range', 'admin', now())
  340. RETURNING menu_id INTO stan_certext_id;
  341. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('延期新增', stan_certext_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stancertextappl:add', '#', 'admin', now());
  342. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('延期修改', stan_certext_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stancertextappl:edit', '#', 'admin', now());
  343. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('延期删除', stan_certext_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stancertextappl:remove', '#', 'admin', now());
  344. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('延期导出', stan_certext_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stancertextappl:export', '#', 'admin', now());
  345. -- 证书审核
  346. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  347. VALUES ('证书审核', stan_dir_id, 4, 'stancertrev', 'slaj/stan/stancertrev/index', 1, 0, 'C', '0', '0', 'stan:stancertrev:list', 'review', 'admin', now())
  348. RETURNING menu_id INTO stan_certrev_id;
  349. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('审核新增', stan_certrev_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stancertrev:add', '#', 'admin', now());
  350. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('审核修改', stan_certrev_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stancertrev:edit', '#', 'admin', now());
  351. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('审核删除', stan_certrev_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stancertrev:remove', '#', 'admin', now());
  352. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('审核导出', stan_certrev_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stancertrev:export', '#', 'admin', now());
  353. -- 标准化评审记录
  354. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  355. VALUES ('标准化评审记录', stan_dir_id, 5, 'stanrevirec', 'slaj/stan/stanrevirec/index', 1, 0, 'C', '0', '0', 'stan:stanrevirec:list', 'log', 'admin', now())
  356. RETURNING menu_id INTO stan_revirec_id;
  357. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审新增', stan_revirec_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stanrevirec:add', '#', 'admin', now());
  358. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审修改', stan_revirec_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stanrevirec:edit', '#', 'admin', now());
  359. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审删除', stan_revirec_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stanrevirec:remove', '#', 'admin', now());
  360. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审导出', stan_revirec_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stanrevirec:export', '#', 'admin', now());
  361. -- 标准化评分
  362. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  363. VALUES ('标准化评分', stan_dir_id, 6, 'stanscore', 'slaj/stan/stanscore/index', 1, 0, 'C', '0', '0', 'stan:stanscore:list', 'number', 'admin', now())
  364. RETURNING menu_id INTO stan_score_id;
  365. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评分新增', stan_score_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stanscore:add', '#', 'admin', now());
  366. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评分修改', stan_score_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stanscore:edit', '#', 'admin', now());
  367. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评分删除', stan_score_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stanscore:remove', '#', 'admin', now());
  368. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评分导出', stan_score_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stanscore:export', '#', 'admin', now());
  369. -- 标准化自评报告
  370. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  371. VALUES ('标准化自评报告', stan_dir_id, 7, 'stanselfevarep', 'slaj/stan/stanselfevarep/index', 1, 0, 'C', '0', '0', 'stan:stanselfevarep:list', 'documentation', 'admin', now())
  372. RETURNING menu_id INTO stan_selfeva_id;
  373. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('自评新增', stan_selfeva_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:stanselfevarep:add', '#', 'admin', now());
  374. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('自评修改', stan_selfeva_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:stanselfevarep:edit', '#', 'admin', now());
  375. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('自评删除', stan_selfeva_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:stanselfevarep:remove', '#', 'admin', now());
  376. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('自评导出', stan_selfeva_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:stanselfevarep:export', '#', 'admin', now());
  377. -- 现场评审
  378. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  379. VALUES ('现场评审', stan_dir_id, 8, 'scenrevi', 'slaj/stan/scenrevi/index', 1, 0, 'C', '0', '0', 'stan:scenrevi:list', 'eye-open', 'admin', now())
  380. RETURNING menu_id INTO stan_scenrevi_id;
  381. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('现场新增', stan_scenrevi_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:scenrevi:add', '#', 'admin', now());
  382. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('现场修改', stan_scenrevi_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:scenrevi:edit', '#', 'admin', now());
  383. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('现场删除', stan_scenrevi_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:scenrevi:remove', '#', 'admin', now());
  384. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('现场导出', stan_scenrevi_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:scenrevi:export', '#', 'admin', now());
  385. -- 初审
  386. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  387. VALUES ('初审', stan_dir_id, 9, 'fromfirsttria', 'slaj/stan/fromfirsttria/index', 1, 0, 'C', '0', '0', 'stan:fromfirsttria:list', 'search', 'admin', now())
  388. RETURNING menu_id INTO stan_firsttria_id;
  389. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('初审新增', stan_firsttria_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:fromfirsttria:add', '#', 'admin', now());
  390. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('初审修改', stan_firsttria_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:fromfirsttria:edit', '#', 'admin', now());
  391. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('初审删除', stan_firsttria_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:fromfirsttria:remove', '#', 'admin', now());
  392. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('初审导出', stan_firsttria_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:fromfirsttria:export', '#', 'admin', now());
  393. -- 标准化申请
  394. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  395. VALUES ('标准化申请', stan_dir_id, 10, 'objstanappl', 'slaj/stan/objstanappl/index', 1, 0, 'C', '0', '0', 'stan:objstanappl:list', 'form', 'admin', now())
  396. RETURNING menu_id INTO stan_appl_id;
  397. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('申请新增', stan_appl_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:objstanappl:add', '#', 'admin', now());
  398. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('申请修改', stan_appl_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:objstanappl:edit', '#', 'admin', now());
  399. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('申请删除', stan_appl_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:objstanappl:remove', '#', 'admin', now());
  400. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('申请导出', stan_appl_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:objstanappl:export', '#', 'admin', now());
  401. -- 标准化评审对象
  402. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  403. VALUES ('标准化评审对象', stan_dir_id, 11, 'objstanrevi', 'slaj/stan/objstanrevi/index', 1, 0, 'C', '0', '0', 'stan:objstanrevi:list', 'example', 'admin', now())
  404. RETURNING menu_id INTO stan_revi_id;
  405. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审新增', stan_revi_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:objstanrevi:add', '#', 'admin', now());
  406. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审修改', stan_revi_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:objstanrevi:edit', '#', 'admin', now());
  407. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审删除', stan_revi_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:objstanrevi:remove', '#', 'admin', now());
  408. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('评审导出', stan_revi_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:objstanrevi:export', '#', 'admin', now());
  409. -- 处罚对象
  410. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time)
  411. VALUES ('处罚对象', stan_dir_id, 12, 'objpuno', 'slaj/stan/objpuno/index', 1, 0, 'C', '0', '0', 'stan:objpuno:list', 'education', 'admin', now())
  412. RETURNING menu_id INTO stan_puno_id;
  413. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('处罚新增', stan_puno_id, 1, '', '', 1, 0, 'F', '0', '0', 'stan:objpuno:add', '#', 'admin', now());
  414. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('处罚修改', stan_puno_id, 2, '', '', 1, 0, 'F', '0', '0', 'stan:objpuno:edit', '#', 'admin', now());
  415. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('处罚删除', stan_puno_id, 3, '', '', 1, 0, 'F', '0', '0', 'stan:objpuno:remove', '#', 'admin', now());
  416. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time) VALUES ('处罚导出', stan_puno_id, 4, '', '', 1, 0, 'F', '0', '0', 'stan:objpuno:export', '#', 'admin', now());
  417. RAISE NOTICE 'Menu SQL executed successfully. % rows inserted.', (SELECT COUNT(*) FROM sys_menu WHERE create_time >= now() - interval '1 minute');
  418. END $$;