soc.sql 178 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576
  1. CREATE TABLE if not exists `core_safety_dict` (
  2. `id` int NOT NULL AUTO_INCREMENT,
  3. `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '指标分类code',
  4. `parent_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父级code',
  5. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '指标分类name',
  6. PRIMARY KEY (`id`) USING BTREE,
  7. UNIQUE KEY `code` (`code`) USING BTREE
  8. ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指标配置字典表';
  9. -- 新增安保综合评价规则表
  10. CREATE TABLE if not exists`core_safety_index_calculate_rule` (
  11. id bigint default 0 not null ,
  12. type_code varchar(50) null comment '指标分类code',
  13. project_code varchar(50) null comment '指标项目code',
  14. point_code varchar(50) null comment '指标要点code',
  15. deduction_type int null comment '扣分方式 1:直接扣分,2最高扣分',
  16. score int null comment '分值',
  17. formula varchar(500) null comment '扣分规则描述',
  18. org_type int null comment '机构类型',
  19. deleted int default 0 null comment '是否删除 0否1是',
  20. cycle int null comment '周期,只有在指标分类为安保履职时使用',
  21. remark varchar(500) null comment '备注',
  22. create_time datetime null,
  23. create_by varchar(125) null,
  24. update_time datetime null,
  25. update_by varchar(125) null,
  26. PRIMARY KEY (`id`) USING BTREE
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指标配置表';
  28. CREATE TABLE if not exists `core_safety_index_calculate_rule_item` (
  29. id bigint default 0 not null ,
  30. rule_id bigint null comment '安全指标主键',
  31. indicator_note varchar(100) null comment '细化指数描述',
  32. calculate_type int null comment '计算类型 1累计数,2连续数,3 分类,4 固化值',
  33. indicator_days int null comment '连续数,连续多少天',
  34. item_type int null comment 'calculate_type为3是用来存具体分类',
  35. item_value double(5, 2) null comment '扣分系数',
  36. order_num int null comment '排序',
  37. create_time datetime null,
  38. create_by varchar(125) null,
  39. update_time datetime null,
  40. update_by varchar(125) null,
  41. PRIMARY KEY (`id`) USING BTREE,
  42. KEY `rule_id` (`rule_id`) USING BTREE
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指标指数细化表';
  44. CREATE TABLE if not exists core_safe_level
  45. (
  46. id int auto_increment primary key,
  47. level_name varchar(50) null comment '安全等级名称:L1,L2,L3,l4',
  48. min_value double(5, 2) null comment '最小值',
  49. max_value double(5, 2) null comment '最大值',
  50. risk_level int null comment '等级风险:0:低,1:中,2:高,3: 极高',
  51. description varchar(50) null comment '安全等级描述:'
  52. ) comment '安全等级配置表';
  53. CREATE TABLE if not exists `core_safe_month_score` (
  54. `id` bigint NOT NULL COMMENT '主键id',
  55. `level_id` bigint DEFAULT NULL COMMENT '评分等级id',
  56. `org_id` bigint DEFAULT NULL COMMENT '机构id',
  57. `data_year` int DEFAULT NULL COMMENT '数据所在年',
  58. `data_month` int DEFAULT NULL COMMENT '数据所在月',
  59. `org_score` double(10,2) NOT NULL COMMENT '机构得分',
  60. `release_status` int DEFAULT NULL COMMENT '评分状态',
  61. `org_path` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '机构path',
  62. PRIMARY KEY (`id`) USING BTREE,
  63. KEY `idx_year_month` (`data_year`,`data_month`) USING BTREE,
  64. KEY `idx_orgId` (`org_id`) USING BTREE
  65. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指数机构月度得分表';
  66. create table if not exists core_safety_exception_data(
  67. id bigint auto_increment comment '主键' primary key,
  68. data_id varchar(100) null comment '异常数据id',
  69. org_id bigint null comment '机构id',
  70. org_name varchar(225) null comment '机构名称',
  71. org_path varchar(225) null comment '机构path',
  72. data_time date null comment '数据产生日期',
  73. data_source varchar(50) null comment '数据来源表',
  74. extra_field1 varchar(100) null comment '扩展预留字段',
  75. extra_field2 varchar(100) null comment '扩展预留字段',
  76. create_time datetime default CURRENT_TIMESTAMP null comment '创建时间'
  77. ) comment '安全指标的异常数据';
  78. CREATE TABLE if not exists`core_safety_source_data` (
  79. `id` bigint NOT NULL COMMENT '主键id',
  80. `rule_id` bigint DEFAULT NULL COMMENT '评价规则id',
  81. `item_id` bigint DEFAULT NULL COMMENT '评价规则项id',
  82. `org_id` bigint DEFAULT NULL COMMENT '机构id',
  83. `data_year` int DEFAULT NULL COMMENT '数据所在年',
  84. `data_month` int DEFAULT NULL COMMENT '数据所在月',
  85. `times` int DEFAULT NULL COMMENT '出现次数',
  86. `score` double(10,2) DEFAULT NULL COMMENT '扣分值',
  87. `type_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '配置项',
  88. PRIMARY KEY (`id`) USING BTREE,
  89. KEY `idx_year_month` (`data_year`,`data_month`) USING BTREE,
  90. KEY `idx_orgId` (`org_id`) USING BTREE
  91. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指数机构扣分细项表';
  92. CREATE TABLE if not exists `core_safety_deduct_data` (
  93. `id` bigint NOT NULL COMMENT '主键id',
  94. `rule_id` bigint DEFAULT NULL COMMENT '评价规则表',
  95. `org_id` bigint DEFAULT NULL COMMENT '机构id',
  96. `data_year` int DEFAULT NULL COMMENT '数据所在年',
  97. `data_month` int DEFAULT NULL COMMENT '数据所在月',
  98. `score` double(10,2) DEFAULT NULL COMMENT '合计每个子项后得出安全指标的分数',
  99. `score_real` double(10,2) DEFAULT NULL COMMENT '真实扣分',
  100. PRIMARY KEY (`id`) USING BTREE,
  101. KEY `idx_year_month` (`data_year`,`data_month`) USING BTREE,
  102. KEY `idx_orgId` (`org_id`) USING BTREE
  103. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全指数扣分表';
  104. CREATE TABLE if not exists `core_safecheck_plan_to_check_org_type` (
  105. `plan_id` bigint NOT NULL COMMENT '计划id',
  106. `type_id` bigint NOT NULL COMMENT '类型id',
  107. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  108. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  109. `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  110. `update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人'
  111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='常规安全检查-受检机构类型关联表';
  112. create table if not exists core_register_book_pdf(
  113. id bigint not null
  114. primary key,
  115. register_book_type int not null comment '登记簿类型',
  116. date date not null comment '保存日期',
  117. org_id bigint not null comment '机构id',
  118. org_name varchar(255) not null comment '机构名称',
  119. org_path varchar(255) not null comment '机构path',
  120. file_name varchar(255) null comment '文件名称',
  121. file_url varchar(255) null comment '文件地址'
  122. );
  123. create table if not exists core_edu_training_plan_to_org_type
  124. (
  125. plan_id bigint not null comment '计划id',
  126. org_type int not null comment '机构类型'
  127. )
  128. comment '教育培训计划与执行机构类型关系表';
  129. -- 新增安全指数字典表
  130. delete from core_safety_dict;
  131. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (52, '1004', '-1', '安保履职');
  132. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (53, '100402', '1004', '未登');
  133. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (54, '10040203', '100402', '网点安全员 (营业中)');
  134. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (55, '10040201', '100402', '网点安全员(营业前)');
  135. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (56, '10040202', '100402', '网点安全员(营业后)');
  136. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (57, '1005', '-1', '问题整改');
  137. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (58, '100501', '1005', '问题数量');
  138. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (59, '10050101', '100501', '未在规定时间内确认');
  139. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (60, '100502', '1005', '整改情况');
  140. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (61, '10050201', '100502', '已确认但未在规定时间内完成整改');
  141. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (62, '1006', '-1', '监控调阅');
  142. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (63, '100601', '1006', '监控调阅-未登');
  143. INSERT ignore INTO core_safety_dict (id, code, parent_code, name) VALUES (64, '10060101', '100601', '未登-网点负责人(每周)');
  144. -- 新增安保综合评价规则初始化数据(注释数据勿删除,留以备用)
  145. delete from core_safety_index_calculate_rule;
  146. -- INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846713285328896, '1005', '100501', '10050101', 2, 10, '扣分=问题数量*K+风险等级为“重大”的问题数量*K1+风险等级为“关注”的问题数量*K2+风险等级为“一般”的问题数量*K3+风险等级为“轻微”的问题数量*K4;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=0.05;K1=0.05;K2=0.15;K3=0.2;K4=0.25。', 3, 0, null, null, now(), null, now(), null);
  147. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846715519614976, '1005', '100501', '10050101', 2, 10, '扣分=问题数量*K+风险等级为“重大”的问题数量*K1+风险等级为“关注”的问题数量*K2+风险等级为“一般”的问题数量*K3+风险等级为“轻微”的问题数量*K4;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=0.05;K1=0.05;K2=0.15;K3=0.2;K4=0.25。', 4, 0, null, null, now(), null, now(), null);
  148. -- INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846717305962496, '1005', '100501', '10050101', 2, 10, '扣分=问题数量*K+风险等级为“重大”的问题数量*K1+风险等级为“关注”的问题数量*K2+风险等级为“一般”的问题数量*K3+风险等级为“轻微”的问题数量*K4;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=0.05;K1=0.05;K2=0.15;K3=0.2;K4=0.25。', 5, 0, null, null, now(), null, now(), null);
  149. -- INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846720300892160, '1005', '100502', '10050201', 2, 10, '扣分=两次整改问题数*K+三次或三次以上整改问题数*K1+超期整改问题数*K2+超期未整改问题数量*K3;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=3;K1=5;K2=0.6;K3=1。', 3, 0, null, null, now(), null, now(), null);
  150. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846721706754048, '1005', '100502', '10050201', 2, 10, '扣分=两次整改问题数*K+三次或三次以上整改问题数*K1+超期整改问题数*K2+超期未整改问题数量*K3;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=3;K1=5;K2=0.6;K3=1。', 4, 0, null, null, now(), null, now(), null);
  151. -- INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846723149234176, '1005', '100502', '10050201', 2, 10, '扣分=两次整改问题数*K+三次或三次以上整改问题数*K1+超期整改问题数*K2+超期未整改问题数量*K3;得分大于10,取分值10。K为调节系数,可变更,建议测试期间K=3;K1=5;K2=0.6;K3=1。', 5, 0, null, null, now(), null, now(), null);
  152. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846745983598592, '1004', '100402', '10040203', 2, 20, '扣分=未登天数*K+未登连续3天*K1+未登连续5天*K2+未登连续10天*K3;得分大于20,取分值20。K为调节系数,可变更,建议测试期间K=0.5;K1=1.5;K2=3;K3=5。', 4, 0, 2, null, now(), null, now(), null);
  153. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (3846747145125888, '1004', '100402', '10040202', 2, 20, '扣分=未登天数*K+未登连续3天*K1+未登连续5天*K2+未登连续10天*K3;得分大于20,取分值20。K为调节系数,可变更,建议测试期间K=0.5;K1=1.5;K2=3;K3=5。', 4, 0, 2, null, now(), null, now(), null);
  154. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (1714172822255894529, '1006', '100601', '10060101', 2, 10, '扣分=未登天数*K+未登连续3天*K1+未登连续5天*K2+未登连续10天*K3;得分大于20,取分值20。K为调节系数,可变更,建议测试期间K=0.5;K1=1.5;K2=3;K3=5。', 4, 0, null, null, now(), null, now(), null);
  155. INSERT ignore INTO core_safety_index_calculate_rule (id, type_code, project_code, point_code, deduction_type, score, formula, org_type, deleted, cycle, remark, create_time, create_by, update_time, update_by) VALUES (1714185441062748161, '1004', '100402', '10040201', 2, 20, '扣分=未登天数*K+未登连续3天*K1+未登连续5天*K2+未登连续10天*K3;得分大于20,取分值20。K为调节系数,可变更,建议测试期间K=0.5;K1=1.5;K2=3;K3=5。', 4, 0, 2, null, now(), null, now(), null);
  156. -- 新增安 ignore保综合评价规则项初始化数据(注释数据勿删除,留以备用)
  157. delete from core_safety_index_calculate_rule_item;
  158. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846702578221056, 3846702577319936, '登记问题数量', 1, null, null, 1, null, now(), null, now(), null);
  159. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846703826649089, 3846703826108416, '连续报警三天', 2, 3, null, 1, null, now(), null, now(), null);
  160. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846703826649090, 3846703826108416, '连续报警五天', 2, 5, null, 2, null, now(), null, now(), null);
  161. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846703826649091, 3846703826108416, '连续报警十天', 2, 10, null, 3, null, now(), null, now(), null);
  162. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846704899833858, 3846704899145728, '连续报警五天', 2, 5, null, 2, null, now(), null, now(), null);
  163. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846704899833859, 3846704899145728, '连续报警十天', 2, 10, null, 3, null, now(), null, now(), null);
  164. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846706034999297, 3846706034688000, '连续报警三天', 2, 3, null, 1, null, now(), null, now(), null);
  165. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846706034999298, 3846706034688000, '连续报警五天', 2, 5, null, 2, null, now(), null, now(), null);
  166. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846706034999299, 3846706034688000, '连续报警十天', 2, 10, null, 3, null, now(), null, now(), null);
  167. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846713285820416, 3846713285328896, '问题数量', 1, null, null, 0.05, null, now(), null, now(), null);
  168. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846713285820417, 3846713285328896, '风险等级为轻微的问题数量', 3, null, 2, 0.05, null, now(), null, now(), null);
  169. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846713285820418, 3846713285328896, '风险等级为关注的问题数量', 3, null, 1, 0.15, null, now(), null, now(), null);
  170. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846713285820419, 3846713285328896, '风险等级为一般的问题数量', 3, null, 3, 0.2, null, now(), null, now(), null);
  171. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846713285820420, 3846713285328896, '风险等级为重大的问题数量', 3, null, 5, 0.25, null,now(), null, now(), null);
  172. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846715519942656, 3846715519614976, '问题数量', 1, null, null, 0.05, null, now(), null, now(), null);
  173. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846715519942657, 3846715519614976, '风险等级为轻微的问题数量', 3, null, 2, 0.05, null,now(), null, now(), null);
  174. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846715519942658, 3846715519614976, '风险等级为关注的问题数量', 3, null, 1, 0.15, null, now(), null, now(), null);
  175. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846715519942659, 3846715519614976, '风险等级为一般的问题数量', 3, null, 3, 0.2, null,now(), null, now(), null);
  176. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846715519942660, 3846715519614976, '风险等级为重大的问题数量', 3, null, 5, 0.25, null, now(), null, now(), null);
  177. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846717306454016, 3846717305962496, '问题数量', 1, null, null, 0.05, null, now(), null, now(), null);
  178. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846717306454017, 3846717305962496, '风险等级为轻微的问题数量', 3, null, 2, 0.05, null, now(), null, now(), null);
  179. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846717306454018, 3846717305962496, '风险等级为关注的问题数量', 3, null, 1, 0.15, null, now(), null, now(), null);
  180. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846717306454019, 3846717305962496, '风险等级为一般的问题数量', 3, null, 3, 0.2, null, now(), null, now(), null);
  181. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846717306454020, 3846717305962496, '风险等级为重大的问题数量', 3, null, 5, 0.25, null, now(), null, now(), null);
  182. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846720301350912, 3846720300892160, ' 超期未整改问题数量', 3, null, 2, 1, null, now(), null, now(), null);
  183. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846720301350913, 3846720300892160, '两次整改问题数', 3, null, 3, 3, null, now(), null, now(), null);
  184. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846720301350914, 3846720300892160, '三次或三次以上整改问题数', 3, null, 4, 5, null, now(), null, now(), null);
  185. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846720301350915, 3846720300892160, '超期整改问题数', 3, null, 1, 0.6, null, now(), null, now(), null);
  186. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846721707180032, 3846721706754048, '超期整改问题数', 1, null, 1, 0.6, null, now(), null, now(), null);
  187. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846721707180033, 3846721706754048, '三次或三次以上整改问题数', 3, null, 4, 5, null, now(), null, now(), null);
  188. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846721707180034, 3846721706754048, '超期未整改问题数量', 3, null, 2, 1, null, now(), null, now(), null);
  189. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846721707180035, 3846721706754048, ' 两次整改问题数', 3, null, 3, 3, null, now(), null, now(), null);
  190. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846723149578240, 3846723149234176, '超期整改问题数', 3, null, 1, 0.6, null, now(), null, now(), null);
  191. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846723149578241, 3846723149234176, '三次或三次以上整改问题数', 3, null, 4, 5, null,now(), null, now(), null);
  192. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846723149578242, 3846723149234176, '超期未整改问题数量', 3, null, 2, 1, null, now(), null, now(), null);
  193. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846723149578243, 3846723149234176, '两次整改问题数', 3, null, 3, 3, null,now(), null, now(), null);
  194. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846747145633792, 3846747145125888, '未登总数', 1, null, null, 0.5, 0, now(), null, now(), null);
  195. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846747145633793, 3846747145125888, '未登连续三天', 2, 3, null, 1, 0, now(), null, now(), null);
  196. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846747145633794, 3846747145125888, '未登连续五天', 2, 5, null, 3, 0, now(), null, now(), null);
  197. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846747145633795, 3846747145125888, '未登连续十天', 2, 10, null, 5, 0, now(), null, now(), null);
  198. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846751521964032, 3846751521619968, '未登天数', 1, null, null, 0.5, null,now(), null, now(), null);
  199. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846751521964033, 3846751521619968, '未登连续三天', 2, 3, null, 2, null, now(), null, now(), null);
  200. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846751521964034, 3846751521619968, '未登连续五天', 2, 5, null, 3, null, now(), null, now(), null);
  201. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846751521964035, 3846751521619968, '未登连续十天', 2, 10, null, 5, null, now(), null, now(), null);
  202. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846752731742208, 3846752731185152, '未登天数', 1, null, null, 0.5, null, now(), null, now(), null);
  203. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846752731742209, 3846752731185152, '未登连续三天', 2, 3, null, 2, null, now(), null, now(), null);
  204. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846752731742210, 3846752731185152, '未登连续五天', 2, 5, null, 3, null, now(), null, now(), null);
  205. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (3846752731742211, 3846752731185152, ' 未登连续十天', 2, 10, null, 5, null, now(), null, now(), null);
  206. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1711273894279716865, 1711273894451683330, '风险等级为轻微的问题数量', 3, 3, null, 0.05, 0, now(), null, now(), null);
  207. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1711273894334242818, 1711273894451683330, '未登连续五天', 2, 5, null, 1.5, 0, now(), null, now(), null);
  208. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714184891021721602, 3846745983598592, '未登总数', 1, null, null, 0.5, 0, now(), null, now(), null);
  209. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714184891030110210, 3846745983598592, '连续三天未登', 2, 3, null, 1, 0, now(), null, now(), null);
  210. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714184891034304513, 3846745983598592, '连续五天未登', 2, 5, null, 1, 0, now(), null, now(), null);
  211. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714184891038498818, 3846745983598592, '连续十天未登', 2, 10, null, 1, 0, now(), null, now(), null);
  212. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714185441075331073, 1714185441062748161, '未登总数', 1, null, null, 0.5, 0, now(), null, now(), null);
  213. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714185441083719682, 1714185441062748161, '连续三天未登', 2, 3, null, 1, 0, now(), null, now(), null);
  214. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714185441092108290, 1714185441062748161, '连续五天未登', 2, 5, null, 1, 0, now(), null, now(), null);
  215. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1714185441096302594, 1714185441062748161, '连续十天未登', 2, 10, null, 1, 0, now(), null, now(), null);
  216. INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1717123345548406785, 1714172822255894529, '未登总数', 1, null, null, 0.5, 0, now(), null, now(), null);
  217. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1717123345560989697, 1714172822255894529, '连续三次未登', 2, 3, null, 1, 0, now(), null, now(), null);
  218. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1717123345565184002, 1714172822255894529, '连续五次未登', 2, 5, null, 1, 0, now(), null, now(), null);
  219. -- INSERT ignore INTO core_safety_index_calculate_rule_item (id, rule_id, indicator_note, calculate_type, indicator_days, item_type, item_value, order_num, create_time, create_by, update_time, update_by) VALUES (1717123345569378306, 1714172822255894529, '连续十次未登', 2, 10, null, 1, 0, now(), null, now(), null);
  220. delete from sys_menu where id in (1728960667819544578);
  221. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark)
  222. VALUES (1728960667819544578, '安保部门从业人员导出', 100, 10, '', null, null, 1, 0, 'F', '0', '0', 'system:user:exportSecurity', '1', null, null, null, now(), '', null, '');
  223. delete from sys_role_menu where menu_id=1728960667819544578;
  224. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 1728960667819544578);
  225. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 1728960667819544578);
  226. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 1728960667819544578);
  227. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 1728960667819544578);
  228. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 1728960667819544578);
  229. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 1728960667819544578);
  230. -- 新增安保综合评价规则目录、菜单、页面及页面权限
  231. delete from sys_menu where id in (1714247486990786561,1712277074707779586,1712278645189414914,1714187591810588674,1714187748136493058,1714187851295399937,1714188002965626881,1714188131026116609);
  232. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1712277074707779586, '安全综合管理评价', 0, 13, '/safetyindex', null, null, 1, 0, 'M', '0', '0', '', '1', 'clipboard', null, null, now(), null, now(), '');
  233. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1712278645189414914, '评价规则配置', 1712277074707779586, 1, 'evaluationRule', 'evaluationRule/index', null, 1, 1, 'C', '0', '0', 'core:safetyIndexRule:list', '1', 'table', null, null, now(), '', null, '');
  234. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1714187591810588674, '综合评价规则新增', 1712278645189414914, 1, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyIndexRule:add', '1', null, null, null, now(), '', null, '');
  235. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1714187748136493058, '综合评价规则编辑', 1712278645189414914, 2, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyIndexRule:edit', '1', null, null, null, now(), '', null, '');
  236. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1714187851295399937, '综合评价规则详情', 1712278645189414914, 3, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyIndexRule:query', '1', null, null, null, now(), '', null, '');
  237. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1714188002965626881, '综合评价规则列表查询', 1712278645189414914, 4, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyIndexRule:list', '1', null, null, null, now(), '', null, '');
  238. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1714188131026116609, '综合评价规则删除', 1712278645189414914, 5, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyIndexRule:remove', '1', null, null, null, now(), '', null, '');
  239. -- 新增安保综合评价规则页面权限
  240. delete from sys_role_menu where menu_id in (1712277074707779586,1712278645189414914,1714187591810588674,1714187748136493058,1714187851295399937,1714188002965626881,1714188131026116609);
  241. insert into sys_role_menu select id,1712277074707779586 from sys_role where role_name like '%省联社安全保卫管理人员%';
  242. insert into sys_role_menu select id,1712278645189414914 from sys_role where role_name like '%省联社安全保卫管理人员%';
  243. insert into sys_role_menu select id,1714187591810588674 from sys_role where role_name like '%省联社安全保卫管理人员%';
  244. insert into sys_role_menu select id,1714187748136493058 from sys_role where role_name like '%省联社安全保卫管理人员%';
  245. insert into sys_role_menu select id,1714187851295399937 from sys_role where role_name like '%省联社安全保卫管理人员%';
  246. insert into sys_role_menu select id,1714188002965626881 from sys_role where role_name like '%省联社安全保卫管理人员%';
  247. insert into sys_role_menu select id,1714188131026116609 from sys_role where role_name like '%省联社安全保卫管理人员%';
  248. -- 新增风险等级字典
  249. delete from sys_dict_type where dict_type='risk_level';
  250. delete from sys_dict_data where dict_type='risk_level';
  251. INSERT INTO sys_dict_type ( dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES ('风险等级', 'risk_level', '0', null, now(), null, now(), null);
  252. INSERT INTO sys_dict_data ( dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES ( 0, '低', '0', 'risk_level', null, 'default', 'N', '0', null, now(), null, now(), null);
  253. INSERT INTO sys_dict_data ( dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES ( 1, '中', '1', 'risk_level', null, 'default', 'N', '0', null, now(), null, now(), null);
  254. INSERT INTO sys_dict_data ( dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES ( 2, '高', '2', 'risk_level', null, 'default', 'N', '0', null, now(), null, now(), null);
  255. INSERT INTO sys_dict_data ( dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES ( 3, '极高', '3', 'risk_level', null, 'default', 'N', '0', null, now(), null, now(), null);
  256. -- 安全等级初始化数据
  257. INSERT ignore INTO core_safe_level (id, level_name, min_value, max_value, risk_level, description) VALUES (1, 'L1', 90, 100, 0, '90分(不含)以上');
  258. INSERT ignore INTO core_safe_level (id, level_name, min_value, max_value, risk_level, description) VALUES (2, 'L2', 80, 90, 1, '80分(不含)与90分(含)之间 ');
  259. INSERT ignore INTO core_safe_level (id, level_name, min_value, max_value, risk_level, description) VALUES (3, 'L3', 70, 80, 2, '70分(不含)与80分(含)之间');
  260. INSERT ignore INTO core_safe_level (id, level_name, min_value, max_value, risk_level, description) VALUES (4, 'L4', 0, 70, 3, '70分及以下');
  261. -- 新增安全等级菜单及页面权限
  262. delete from sys_menu where id in (1717479664205783042,1717480807703076866,1717480976800636929,1717481080311865346,1717481175799390210,1717481251359776769);
  263. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717479664205783042, '安全等级配置', 1712277074707779586, 1, '/level', 'core/safeLevel/index', null, 1, 0, 'C', '0', '0', 'core.safeIndex:safeLevel:list', '1', 'button', null, null, now(), null, now(), null);
  264. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717480807703076866, '安全等级列表', 1717479664205783042, 1, '', null, null, 1, 0, 'F', '0', '0', 'core.safeIndex:safeLevel:list', '1', null, null, null, now(), null, now(), null);
  265. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717480976800636929, '安全等级详情', 1717479664205783042, 2, '', null, null, 1, 0, 'F', '0', '0', 'core.safetyIndex:safeLevel:query', '1', null, null, null, now(), null, now(), null);
  266. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717481080311865346, '安全等级新增', 1717479664205783042, 3, '', null, null, 1, 0, 'F', '0', '0', 'core.safetyIndex:safeLevel:add', '1', null, null, null, now(), null, now(), null);
  267. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717481175799390210, '安全等级编辑', 1717479664205783042, 4, '', null, null, 1, 0, 'F', '0', '0', 'core.safetyIndex:safeLevel:edit', '1', null, null, null, now(), null, now(), null);
  268. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1717481251359776769, '安全等级删除', 1717479664205783042, 5, '', null, null, 1, 0, 'F', '0', '0', 'core.safetyIndex:safeLevel:remove', '1', null, null, null, now(), null, now(), null);
  269. -- 安全等级菜单权限
  270. delete from sys_role_menu where menu_id in (1717479664205783042,1717480807703076866,1717480976800636929,1717481080311865346,1717481175799390210,1717481251359776769);
  271. insert into sys_role_menu select id,1717479664205783042 from sys_role where role_name like '%省联社安全保卫管理人员%';
  272. insert into sys_role_menu select id,1717480807703076866 from sys_role where role_name like '%省联社安全保卫管理人员%';
  273. insert into sys_role_menu select id,1717480976800636929 from sys_role where role_name like '%省联社安全保卫管理人员%';
  274. insert into sys_role_menu select id,1717481080311865346 from sys_role where role_name like '%省联社安全保卫管理人员%';
  275. insert into sys_role_menu select id,1717481175799390210 from sys_role where role_name like '%省联社安全保卫管理人员%';
  276. insert into sys_role_menu select id,1717481251359776769 from sys_role where role_name like '%省联社安全保卫管理人员%';
  277. -- 新增综合计算得分菜单及菜单权限
  278. delete from sys_menu where id in (1718909968666697730,1719970958288199682,1719986164527636481);
  279. delete from sys_role_menu where menu_id in (1718909968666697730,1719970958288199682,1719986164527636481);
  280. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1718909968666697730, '计算综合得分', 1712277074707779586, 3, 'scorestatistics', 'scorestatistics/index', null, 1, 1, 'C', '0', '0', 'core:safeMonthScore:list', '1', 'system', null, null, now(), null, now(), null);
  281. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1719970958288199682, '综合得分重新计算', 1718909968666697730, 1, '', null, null, 1, 0, 'F', '0', '0', 'core:safetyExceptionData:reCalculate', '1', null, null, null, now(), null, now(), null);
  282. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1719986164527636481, '综合得分指数分布', 1718909968666697730, 2, '', null, null, 1, 0, 'F', '0', '0', 'core:safeMonthScore:list', '1', null, null, null, now(), null, now(), null);
  283. insert into sys_role_menu select id,1718909968666697730 from sys_role where org_type in (1,2,3);
  284. insert into sys_role_menu select id,1719970958288199682 from sys_role where org_type in (1,2,3);
  285. insert into sys_role_menu select id,1719986164527636481 from sys_role where org_type in (1,2,3);
  286. -- 新增登记簿类型字典
  287. delete from sys_dict_type where dict_type='register_book_type';
  288. delete from sys_dict_data where dict_type='register_book_type';
  289. INSERT INTO sys_dict_type (dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES ('登记簿类型', 'register_book_type', '0', null, now(), null, now(), null);
  290. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (0, '安保履职登记簿', '0', 'register_book_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  291. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (1, '教育培训登记簿', '1', 'register_book_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  292. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (2, '预案演练登记簿', '2', 'register_book_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  293. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (26, '安全检查登记簿', '26', 'register_book_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  294. -- 新增行政级别字典
  295. delete from sys_dict_type where dict_type='administrative_level';
  296. delete from sys_dict_data where dict_type='administrative_level';
  297. INSERT INTO sys_dict_type (dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark)
  298. VALUES ('行政级别', 'administrative_level', '0', null, now(), null, now(), '省市县');
  299. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  300. VALUES (1, '省级', '1', 'administrative_level', null, 'default', 'N', '0', '超级管理员', now(), '超级管理员', now(), '省级');
  301. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  302. VALUES (2, '市级', '2', 'administrative_level', null, 'default', 'N', '0', '超级管理员', now(), '超级管理员', now(), '市级');
  303. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  304. VALUES (3, '县级', '3', 'administrative_level', null, 'default', 'N', '0', '超级管理员', now(), '超级管理员', now(), '县级');
  305. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  306. VALUES (4, '无', '4', 'administrative_level', null, 'default', 'N', '0', '超级管理员', now(), '超级管理员', now(), '无');
  307. ALTER TABLE core_protection MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  308. ALTER TABLE core_protection MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  309. ALTER TABLE core_protection MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  310. ALTER TABLE core_protection_log MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  311. ALTER TABLE core_protection_log MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  312. ALTER TABLE core_protection_log MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  313. ALTER TABLE core_question MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  314. ALTER TABLE core_question MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  315. ALTER TABLE core_question MODIFY COLUMN update_time datetime NULL COMMENT '修改时间';
  316. ALTER TABLE core_question MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  317. ALTER TABLE core_question MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  318. ALTER TABLE core_question_flow MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  319. ALTER TABLE core_resumption MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  320. ALTER TABLE core_resumption MODIFY COLUMN org_path varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '机构业务路径';
  321. ALTER TABLE core_resumption MODIFY COLUMN org_name varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '机构名称';
  322. ALTER TABLE core_resumption MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  323. ALTER TABLE core_resumption MODIFY COLUMN update_time datetime NULL COMMENT '修改时间';
  324. ALTER TABLE core_resumption MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  325. ALTER TABLE core_resumption_configuration MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  326. ALTER TABLE core_resumption_configuration MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  327. ALTER TABLE core_resumption_configuration MODIFY COLUMN update_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  328. ALTER TABLE core_resumption_configuration MODIFY COLUMN update_time datetime NULL COMMENT '修改时间';
  329. ALTER TABLE core_resumption_configuration MODIFY COLUMN del_flag varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' NULL COMMENT '删除标识';
  330. ALTER TABLE core_resumption_data MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  331. ALTER TABLE core_resumption_data_nfc MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  332. ALTER TABLE core_resumption_data_protection MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  333. ALTER TABLE core_resumption_data_remarkimg MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  334. ALTER TABLE core_resumption_rule MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  335. ALTER TABLE core_resumption_rule MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  336. ALTER TABLE core_resumption_rule MODIFY COLUMN update_time datetime NULL COMMENT '修改时间';
  337. ALTER TABLE core_resumption_rule MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  338. ALTER TABLE core_resumption_rule MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  339. ALTER TABLE core_resumption_rule_item MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  340. ALTER TABLE core_resumption_rule_item MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  341. ALTER TABLE core_resumption_rule_item MODIFY COLUMN update_time datetime NULL COMMENT '更新时间';
  342. ALTER TABLE core_resumption_rule_item MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  343. ALTER TABLE core_resumption_rule_item MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  344. ALTER TABLE core_resumption_rule_point MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  345. ALTER TABLE core_resumption_rule_point MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  346. ALTER TABLE core_resumption_rule_point MODIFY COLUMN update_time datetime NULL COMMENT '修改时间';
  347. ALTER TABLE core_resumption_rule_point MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  348. ALTER TABLE core_safe_month_score MODIFY COLUMN release_status int NULL COMMENT '评分状态';
  349. ALTER TABLE core_safecheck_plan MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  350. ALTER TABLE core_safecheck_plan MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  351. ALTER TABLE core_safecheck_plan_to_check_org MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  352. ALTER TABLE core_safecheck_plan_to_check_org MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  353. ALTER TABLE core_safecheck_plan_to_exec_org MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  354. ALTER TABLE core_safecheck_plan_to_exec_org MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  355. ALTER TABLE core_safecheck_plan_to_point MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  356. ALTER TABLE core_safecheck_plan_to_point MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  357. ALTER TABLE core_safecheck_plan_to_point MODIFY COLUMN required tinyint(1) NULL COMMENT '是否必填';
  358. ALTER TABLE core_safecheck_plan_to_role MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  359. ALTER TABLE core_safecheck_plan_to_role MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '更新人';
  360. ALTER TABLE core_safety_book MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  361. ALTER TABLE core_safety_book_user MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  362. ALTER TABLE core_safety_book_user_id MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  363. ALTER TABLE core_safety_dict MODIFY COLUMN id int auto_increment NOT NULL COMMENT '主键';
  364. alter table core_safety_exception_data modify id bigint auto_increment comment '主键';
  365. alter table core_safety_exception_data auto_increment = 1;
  366. ALTER TABLE core_safety_exception_data MODIFY COLUMN create_time datetime DEFAULT CURRENT_TIMESTAMP NULL COMMENT '创建时间';
  367. ALTER TABLE core_safety_index_calculate_rule MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  368. ALTER TABLE core_safety_index_calculate_rule MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  369. ALTER TABLE core_safety_index_calculate_rule MODIFY COLUMN create_by varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  370. ALTER TABLE core_safety_index_calculate_rule MODIFY COLUMN update_time datetime NULL COMMENT '更新时间';
  371. ALTER TABLE core_safety_index_calculate_rule MODIFY COLUMN update_by varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  372. ALTER TABLE core_safety_index_calculate_rule_item MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  373. ALTER TABLE core_safety_index_calculate_rule_item MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  374. ALTER TABLE core_safety_index_calculate_rule_item MODIFY COLUMN create_by varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  375. ALTER TABLE core_safety_index_calculate_rule_item MODIFY COLUMN update_time datetime NULL COMMENT '更新时间';
  376. ALTER TABLE core_safety_index_calculate_rule_item MODIFY COLUMN update_by varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '更新人';
  377. ALTER TABLE core_safety_task MODIFY COLUMN id bigint NOT NULL COMMENT '主键';
  378. ALTER TABLE core_safety_task MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  379. ALTER TABLE core_safety_task MODIFY COLUMN update_time datetime NULL COMMENT '更新时间';
  380. ALTER TABLE core_safety_task MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '创建人';
  381. ALTER TABLE core_safety_task MODIFY COLUMN update_by varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '修改人';
  382. ALTER TABLE core_safety_task_data MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  383. ALTER TABLE core_safety_task_data_nfc MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  384. ALTER TABLE core_safety_task_data_remark MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  385. ALTER TABLE core_safety_task_data_remarkimg MODIFY COLUMN id bigint DEFAULT 0 NOT NULL COMMENT '主键';
  386. ALTER TABLE core_safetycheck_rule MODIFY COLUMN id bigint auto_increment NOT NULL COMMENT '主键';
  387. ALTER TABLE core_safetycheck_rule MODIFY COLUMN create_time datetime NULL COMMENT '创建时间';
  388. ALTER TABLE core_safetycheck_rule MODIFY COLUMN update_time datetime NULL COMMENT '更新时间';
  389. ALTER TABLE core_safetycheck_rule MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4;
  390. -- 修改演练任务表状态字段释义
  391. alter table core_drill_task modify status int default 0 null comment '任务状态:0:待登记,5:待提交,1:待签名,2待评价,3:已完成,4:已逾期';
  392. alter table core_drill_dictionary modify drill_type varchar(12) null comment '演练项目,字典表关联取值';
  393. alter table core_drill_dictionary modify drill_type_name varchar(32) null comment '演练项目名称';
  394. alter table core_drill_task modify comment varchar(2000) null comment '点评总结(登记人自评)';
  395. DELIMITER ??
  396. DROP PROCEDURE IF EXISTS schema_change ??
  397. CREATE PROCEDURE schema_change () BEGIN
  398. -- 履职表增加次数
  399. IF
  400. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption' AND COLUMN_NAME = 'times' ) THEN
  401. ALTER TABLE `core_resumption`
  402. ADD COLUMN `times` smallint NULL COMMENT '第几次' AFTER `role_id`;
  403. END IF;
  404. -- 履职表增加提交人
  405. IF
  406. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption' AND COLUMN_NAME = 'submitor_id' ) THEN
  407. ALTER TABLE `soc`.`core_resumption`
  408. ADD COLUMN `submitor_id` bigint NULL COMMENT '提交人id' AFTER `submit_time`,
  409. ADD COLUMN `submitor_name` varchar(32) NULL COMMENT '提交人姓名' AFTER `submitor_id`;
  410. END IF;
  411. -- 人员补充信息表增加金融安全防范工程专家
  412. IF
  413. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_user_information' AND COLUMN_NAME = 'financial_experts' ) THEN
  414. ALTER TABLE `sys_user_information`
  415. ADD COLUMN `financial_experts`varchar(32) NULL COMMENT '金融安全防范工程专家';
  416. END IF;
  417. -- 机构扩展添加字段
  418. IF
  419. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_org_extend' AND COLUMN_NAME = 'remote_count' ) THEN
  420. ALTER TABLE `sys_org_extend`
  421. ADD COLUMN `remote_count` int NULL COMMENT '业务库防控隔离门出入口数量';
  422. END IF;
  423. IF
  424. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_org_extend' AND COLUMN_NAME = 'cash_adding_room' ) THEN
  425. ALTER TABLE `sys_org_extend`
  426. ADD COLUMN `cash_adding_room` int NULL COMMENT '离行式加钞间出入口数量';
  427. END IF;
  428. IF
  429. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_org_extend' AND COLUMN_NAME = 'safe_box' ) THEN
  430. ALTER TABLE `sys_org_extend`
  431. ADD COLUMN `safe_box` int NULL COMMENT '是否设立保管箱库';
  432. END IF;
  433. IF
  434. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_org_extend' AND COLUMN_NAME = 'inner_count' ) THEN
  435. ALTER TABLE `sys_org_extend`
  436. ADD COLUMN `inner_count` int NULL COMMENT '内部保安人数';
  437. END IF;
  438. IF
  439. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'sys_org_extend' AND COLUMN_NAME = 'outside_count' ) THEN
  440. ALTER TABLE `sys_org_extend`
  441. ADD COLUMN `outside_count` int NULL COMMENT '外聘保安人数';
  442. END IF;
  443. IF
  444. NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_protection' AND COLUMN_NAME = 'status_updator_id' ) THEN
  445. ALTER TABLE `core_protection`
  446. ADD COLUMN `status_updator_id` bigint NULL DEFAULT NULL COMMENT '上报人id' AFTER `status_update_time`,
  447. ADD COLUMN `status_updator_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报人姓名' AFTER `status_updator_id`;
  448. END IF;
  449. -- 安全指数机构分数表增加机构名称字段
  450. IF NOT EXISTS(SELECT *
  451. FROM information_schema.columns
  452. WHERE table_schema = DATABASE()
  453. AND table_name = 'core_safe_month_score'
  454. AND column_name = 'org_name') THEN
  455. alter table core_safe_month_score
  456. add org_name varchar(125) null comment '机构名称' after org_id;
  457. END IF;
  458. -- 安全指数机构扣分细项表增加机构名称字段
  459. IF NOT EXISTS(SELECT *
  460. FROM information_schema.columns
  461. WHERE table_schema = DATABASE()
  462. AND table_name = 'core_safety_source_data'
  463. AND column_name = 'org_name') THEN
  464. alter table core_safety_source_data
  465. add org_name varchar(225) null comment '机构名称' after org_id;
  466. alter table core_safety_source_data
  467. add org_path varchar(225) null comment '机构path' after org_name;
  468. END IF;
  469. -- 安全指数扣分表增加机构名称字段
  470. IF NOT EXISTS(SELECT *
  471. FROM information_schema.columns
  472. WHERE table_schema = DATABASE()
  473. AND table_name = 'core_safety_deduct_data'
  474. AND column_name = 'org_name') THEN
  475. alter table core_safety_deduct_data
  476. add org_name varchar(225) null comment '机构名称' after org_id;
  477. alter table core_safety_deduct_data
  478. add org_path varchar(225) null comment '机构path' after org_name;
  479. END IF;
  480. -- 安全指数异常数据表增加机构名称字段
  481. IF NOT EXISTS(SELECT *
  482. FROM information_schema.columns
  483. WHERE table_schema = DATABASE()
  484. AND table_name = 'core_safety_exception_data'
  485. AND column_name = 'org_name') THEN
  486. alter table core_safety_exception_data
  487. add org_name varchar(225) null comment '机构名称' after org_id;
  488. alter table core_safety_exception_data
  489. add org_path varchar(225) null comment '机构path' after org_name;
  490. END IF;
  491. -- 安全指数机构分数表增加索引
  492. IF EXISTS(SELECT *
  493. FROM information_schema.STATISTICS
  494. WHERE table_schema = DATABASE()
  495. AND table_name = 'core_safe_month_score'
  496. AND INDEX_NAME = 'idx_year_month') THEN
  497. drop index idx_orgId on core_safe_month_score;
  498. drop index idx_year_month on core_safe_month_score;
  499. create unique index idx_orgId_year_month on core_safe_month_score (org_id, data_year, data_month) comment '机构id+年+月';
  500. END IF;
  501. -- 调阅计划加所属机构
  502. IF NOT EXISTS(SELECT *
  503. FROM information_schema.columns
  504. WHERE table_schema = DATABASE()
  505. AND table_name = 'core_monitoring_retrieval_plan'
  506. AND column_name = 'organization') THEN
  507. alter table core_monitoring_retrieval_plan
  508. add organization varchar(255) DEFAULT NULL COMMENT '所属机构';
  509. END IF;
  510. -- 履职添加pdf
  511. IF NOT EXISTS(SELECT *
  512. FROM information_schema.columns
  513. WHERE table_schema = DATABASE()
  514. AND table_name = 'core_resumption_plan'
  515. AND column_name = 'pdf_url') THEN
  516. alter table core_resumption_plan
  517. add pdf_url varchar(255) DEFAULT NULL COMMENT 'pdf下载地址';
  518. END IF;
  519. -- 作息添加是否值班打卡
  520. IF NOT EXISTS(SELECT *
  521. FROM information_schema.columns
  522. WHERE table_schema = DATABASE()
  523. AND table_name = 'sys_work_time'
  524. AND column_name = 'is_duty') THEN
  525. alter table sys_work_time
  526. add is_duty int NULL COMMENT '是否值班打卡';
  527. END IF;
  528. IF NOT EXISTS(SELECT *
  529. FROM information_schema.columns
  530. WHERE table_schema = DATABASE()
  531. AND table_name = 'sys_work_time_set_dayofweek'
  532. AND column_name = 'is_duty') THEN
  533. alter table sys_work_time_set_dayofweek
  534. add is_duty int NULL COMMENT '是否值班打卡';
  535. END IF;
  536. -- 演练范本库表增加演练类型字段
  537. IF NOT EXISTS(SELECT *
  538. FROM information_schema.columns
  539. WHERE table_schema = DATABASE()
  540. AND table_name = 'core_drill_dictionary'
  541. AND column_name = 'drill_category') THEN
  542. alter table core_drill_dictionary
  543. add drill_category int null comment '演练类型,字典表取值' after drill_type_name;
  544. alter table core_drill_dictionary
  545. add drill_category_name varchar(125) null comment '演练类型名称' after drill_category;
  546. END IF;
  547. -- 履职计划增加是否有任务已经完成
  548. IF NOT EXISTS(SELECT *
  549. FROM information_schema.columns
  550. WHERE table_schema = DATABASE()
  551. AND table_name = 'core_resumption_plan'
  552. AND column_name = 'task_has_completed') THEN
  553. ALTER TABLE `core_resumption_plan`
  554. ADD COLUMN `task_has_completed` int NULL COMMENT '1:表示有已完成的任务';
  555. END IF;
  556. -- 履职内容增加生效日期
  557. IF NOT EXISTS(SELECT *
  558. FROM information_schema.columns
  559. WHERE table_schema = DATABASE()
  560. AND table_name = 'core_resumption_plan_to_point'
  561. AND column_name = 'effective_date') THEN
  562. ALTER TABLE `core_resumption_plan_to_point`
  563. ADD COLUMN `effective_date` date NULL COMMENT '生效日期。不为null';
  564. UPDATE core_resumption_plan_to_point set effective_date='2000-01-01';
  565. END IF;
  566. IF NOT EXISTS(SELECT *
  567. FROM information_schema.columns
  568. WHERE table_schema = DATABASE()
  569. AND table_name = 'sys_org_physical_defense_construction'
  570. AND column_name = 'date_of_complete') THEN
  571. ALTER TABLE `sys_org_physical_defense_construction`
  572. ADD COLUMN `date_of_complete` datetime NULL DEFAULT NULL COMMENT '计划达标日期';
  573. END IF;
  574. IF NOT EXISTS(SELECT *
  575. FROM information_schema.columns
  576. WHERE table_schema = DATABASE()
  577. AND table_name = 'sys_org_physical_defense_construction'
  578. AND column_name = 'reason') THEN
  579. ALTER TABLE `sys_org_physical_defense_construction`
  580. ADD COLUMN `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '未达标原因';
  581. END IF;
  582. -- 培训计划表新增字段 培训类型
  583. IF NOT EXISTS(SELECT *
  584. FROM information_schema.columns
  585. WHERE table_schema = DATABASE()
  586. AND table_name = 'core_edu_training_plan'
  587. AND column_name = 'type') THEN
  588. alter table core_edu_training_plan
  589. add type int default 0 not null comment '培训类型,0:行社安全保卫教育培训,1:行社消防安全培训,2:营业网点安全保卫教育培训,3:营业网点消防安全培训,4:其他' after id;
  590. END IF;
  591. -- 演练计划表新增字段 演练类型
  592. IF NOT EXISTS(SELECT *
  593. FROM information_schema.columns
  594. WHERE table_schema = DATABASE()
  595. AND table_name = 'core_drill_plan'
  596. AND column_name = 'category') THEN
  597. alter table core_drill_plan
  598. add category int default 0 not null comment '演练类型,0:应急预案演练,1:灭火和应急疏散预案演练,2:其他' after id;
  599. END IF;
  600. -- 演练任务表新增字段 演练类型
  601. IF NOT EXISTS(SELECT *
  602. FROM information_schema.columns
  603. WHERE table_schema = DATABASE()
  604. AND table_name = 'core_drill_task'
  605. AND column_name = 'category') THEN
  606. alter table core_drill_task
  607. add category int default 0 not null comment '演练类型,0:应急预案演练,1:灭火和应急疏散预案演练,2:其他' after id;
  608. -- 修改表字段释义
  609. alter table core_drill_task
  610. modify type int null comment '演练项目';
  611. END IF;
  612. -- 隐患问题增加来源任务的任务类型字段
  613. IF NOT EXISTS(SELECT *
  614. FROM information_schema.columns
  615. WHERE table_schema = DATABASE()
  616. AND table_name = 'core_question'
  617. AND column_name = 'src_task_type') THEN
  618. ALTER TABLE `core_question`
  619. ADD COLUMN `src_task_type` int NULL COMMENT '来源任务的任务类型' AFTER `src_type`;
  620. update core_question set src_task_type=(SELECT p.plan_type FROM core_resumption r INNER JOIN core_resumption_plan p on r.plan_id=p.id WHERE r.id=core_question.src_task_id) WHERE src_task_type is null and src_type=1;
  621. update core_question set src_task_type=(SELECT p.check_type FROM core_safety_task r INNER JOIN core_safecheck_plan p on r.plan_id=p.id WHERE r.id=core_question.src_task_id) WHERE src_task_type is null and src_type=2;
  622. END IF;
  623. END ??
  624. DELIMITER;
  625. CALL schema_change ();
  626. UPDATE sys_menu SET menu_name='设备登记管理' WHERE id=2050;
  627. UPDATE sys_menu SET menu_name='监控调阅' WHERE id=2076;
  628. UPDATE sys_menu SET menu_name='调阅任务下发' WHERE id=2052;
  629. update sys_menu set menu_name='调阅情况跟踪' where menu_name='监控调阅任务管理';
  630. -- 教育培训菜单名称变更
  631. update sys_menu set menu_name='教育培训' where menu_name='教育培训管理' limit 1;
  632. update sys_menu set menu_name='培训任务下发' where menu_name='培训计划管理' limit 1;
  633. UPDATE sys_menu t SET t.menu_name = '教育培训任务新增' WHERE t.menu_name = '教育培训计划新增' limit 1;
  634. UPDATE sys_menu t SET t.menu_name = '教育培训任务修改' WHERE t.menu_name = '教育培训计划修改' limit 1;
  635. UPDATE sys_menu t SET t.menu_name = '教育培训任务删除' WHERE t.menu_name = '教育培训计划删除' limit 1;
  636. UPDATE sys_menu t SET t.menu_name = '教育培训任务下发' WHERE t.menu_name = '教育培训计划下发' limit 1;
  637. UPDATE sys_menu t SET t.menu_name = '教育培训任务查询' WHERE t.menu_name = '教育培训计划查询' limit 1;
  638. UPDATE sys_menu t SET t.menu_name = '教育培训任务导出' WHERE t.menu_name = '教育培训计划导出' limit 1;
  639. update sys_menu set menu_name='培训登记跟踪' where menu_name='培训任务管理' limit 1;
  640. -- 培训计划菜单名称修改
  641. update sys_menu set menu_name ='培训登记查询' where perms='core:eduTask:list' and menu_name='查询' limit 1;
  642. update sys_menu set menu_name ='培训登记新增' where perms='core:eduTask:add' and menu_name='新增' limit 1;
  643. update sys_menu set menu_name ='培训登记编辑' where perms='core:eduTask:edit' and menu_name='编辑' limit 1;
  644. update sys_menu set menu_name ='培训登记删除' where perms='core:eduTask:remove' and menu_name='删除' limit 1;
  645. update sys_menu set menu_name ='培训登记导出' where perms='core:eduTask:export' and menu_name='导出' limit 1;
  646. -- 布撤防菜单名称修改
  647. update sys_menu set `menu_name`='履职情况跟踪' WHERE `menu_name`='履职情况查询';
  648. update sys_menu set `menu_name`='布撤防情况跟踪',parent_id=2000 WHERE `menu_name`='布撤防状态监管';
  649. -- 履职/安全检查菜单变更
  650. UPDATE `sys_menu` SET `menu_name` = '履职任务下发' WHERE menu_name='履职计划管理';
  651. UPDATE `sys_menu` SET `menu_name` = '检查任务下发' WHERE menu_name='检查计划管理';
  652. UPDATE `sys_menu` SET `menu_name` = '检查登记跟踪' WHERE menu_name='检查任务管理';
  653. UPDATE `sys_menu` SET `menu_name` = '日常履职' WHERE menu_name='日常安全履职';
  654. UPDATE `sys_menu` SET `menu_name` = '安全检查' WHERE menu_name='安全检查管理';
  655. UPDATE `sys_menu` SET `menu_name` = '基础信息' WHERE menu_name='安保基础信息';
  656. -- 增加整改情况跟踪菜单
  657. DELETE FROM `sys_menu` WHERE id in (1719662219582926849,1719663201104588802,2355);
  658. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01719662219582926849, '整改情况跟踪', 2350, 2, 'reform', 'question/reform/index', NULL, 1, 0, 'C', '0', '0', 'question:reform', '1', 'post', NULL, 'jwx', '2023-11-01 18:27:01', '', NULL, '');
  659. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01719663201104588802, '查询', 1719662219582926849, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'question:reform:query', '1', NULL, NULL, '超级管理员', '2023-11-01 18:30:55', '', NULL, '');
  660. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (00000000000000002355, '整改', 1719662219582926849, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'question:reform:reform', '1', '#', NULL, '超级管理员', '2023-09-23 16:30:16', '超级管理员', '2023-11-01 18:31:21', '');
  661. -- 安全检查字典变更
  662. DELETE FROM `sys_dict_data` WHERE `dict_type`='safety_check_status';
  663. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '待检查', '1', 'safety_check_status', NULL, 'default', 'N', '0', '超级管理员', '2023-09-21 10:44:18', '', NULL, NULL);
  664. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '进行中', '2', 'safety_check_status', NULL, 'default', 'N', '0', '超级管理员', '2023-09-21 10:44:29', '', NULL, NULL);
  665. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 3, '已完成', '3', 'safety_check_status', NULL, 'default', 'N', '0', '超级管理员', '2023-09-21 10:44:36', '省联社账号', '2023-11-03 10:53:52', NULL);
  666. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 4, '已逾期', '4', 'safety_check_status', NULL, 'default', 'N', '0', '超级管理员', '2023-09-21 10:44:43', '', NULL, NULL);
  667. -- 机构类型字典变更
  668. DELETE FROM `sys_dict_data` WHERE `dict_type`='sys_org_type';
  669. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 900, '省联社', '1', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:51:17', '何悦', '2023-08-24 10:35:12', NULL);
  670. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 800, '办事处', '2', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:51:38', '超级管理员', '2023-09-05 14:55:20', NULL);
  671. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 200, '行社', '3', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:52:01', '超级管理员', '2023-09-15 18:10:38', NULL);
  672. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 100, '营业网点', '4', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:52:13', '超级管理员', '2023-09-15 18:15:21', NULL);
  673. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 300, '离行式自助银行', '5', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:52:41', '超级管理员', '2023-09-15 18:15:35', NULL);
  674. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 600, '中心业务库', '6', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:52:59', '省联社账号', '2023-11-01 10:42:56', NULL);
  675. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 700, '监控中心', '10', 'sys_org_type', NULL, 'default', 'N', '0', '何悦', '2023-08-16 17:53:46', '省联社账号', '2023-11-01 10:43:10', NULL);
  676. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 500, '网点业务库', '8', 'sys_org_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-12 19:57:55', '超级管理员', '2023-09-15 18:18:44', NULL);
  677. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 400, '保管箱库', '7', 'sys_org_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-15 17:10:47', '', NULL, NULL);
  678. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1000, '其他', '9', 'sys_org_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-17 00:13:26', '超级管理员', '2023-09-17 00:13:37', NULL);
  679. DELETE FROM `sys_dict_data` WHERE `dict_type`='org_platform_brand';
  680. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '大华', '1', 'org_platform_brand', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:25:09', '省联社账号', '2023-11-01 10:44:47', NULL);
  681. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '恒通', '2', 'org_platform_brand', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:25:18', '省联社账号', '2023-11-01 10:44:53', NULL);
  682. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 3, '讯美', '3', 'org_platform_brand', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:25:25', '省联社账号', '2023-11-01 10:45:01', NULL);
  683. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 4, '天跃', '4', 'org_platform_brand', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:25:34', '省联社账号', '2023-11-01 10:45:18', NULL);
  684. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 5, '海康威视', '5', 'org_platform_brand', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:25:43', '省联社账号', '2023-11-01 10:45:26', NULL);
  685. -- 预案演练菜单名称变更
  686. UPDATE sys_menu set menu_name ='预案演练' WHERE menu_name ='预案演练管理';
  687. UPDATE sys_menu set menu_name ='演练范本管理' WHERE menu_name ='演练库管理';
  688. UPDATE sys_menu set menu_name ='演练范本新增' WHERE menu_name ='演练库新增';
  689. UPDATE sys_menu set menu_name ='演练范本查询' WHERE menu_name ='演练库查询';
  690. UPDATE sys_menu set menu_name ='演练范本编辑' WHERE menu_name ='演练库编辑';
  691. UPDATE sys_menu set menu_name ='演练范本详情' WHERE menu_name ='演练库详情';
  692. UPDATE sys_menu set menu_name ='演练范本删除' WHERE menu_name ='演练库删除';
  693. -- 演练计划
  694. UPDATE sys_menu set menu_name ='演练任务下发' WHERE menu_name ='演练计划管理';
  695. UPDATE sys_menu set menu_name ='演练任务新增' WHERE menu_name ='演练计划新增';
  696. UPDATE sys_menu set menu_name ='演练任务列表' WHERE menu_name ='演练计划列表';
  697. UPDATE sys_menu set menu_name ='演练任务下发' WHERE menu_name ='演练计划下发';
  698. UPDATE sys_menu set menu_name ='演练任务编辑' WHERE menu_name ='演练计划编辑';
  699. UPDATE sys_menu set menu_name ='演练任务删除' WHERE menu_name ='演练计划删除';
  700. UPDATE sys_menu set menu_name ='演练任务详情' WHERE menu_name ='演练计划详情';
  701. UPDATE sys_menu set menu_name ='演练登记跟踪' WHERE menu_name ='演练任务管理';
  702. UPDATE sys_dict_data set dict_label ='待登记' WHERE dict_label ='待演练' AND dict_type='drill_task_status';
  703. update sys_menu set menu_name='演练登记编辑' where perms ='core:drillTask:edit' and menu_name ='演练任务登记' limit 1;
  704. update sys_menu set menu_name='演练登记详情' where perms ='core:drillTask:query' and menu_name ='演练任务详情' limit 1;
  705. update sys_menu set menu_name='演练登记签名' where perms ='core:drillTask:sign' and menu_name ='演练任务签名' limit 1;
  706. update sys_menu set menu_name='演练登记评价' where perms ='core:drillTask:evaluate' and menu_name ='演练任务评价' limit 1;
  707. update sys_menu set menu_name='演练登记删除' where perms ='core:drillTask:remove' and menu_name ='演练任务删除' limit 1;
  708. -- 演练任务
  709. -- 新增演练任务删除按钮菜单及权限赋予
  710. delete from sys_menu where id=1721426177600598018;
  711. delete from sys_role_menu where menu_id=1721426177600598018;
  712. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark) VALUES (1721426177600598018, '演练任务删除', 2322, 5, '', null, null, 1, 0, 'F', '0', '0', 'core:drillTask:remove', '1', null, null, null, now(), null, now(), null);
  713. insert into sys_role_menu(role_id, menu_id)
  714. select r.id,m.id
  715. from sys_role r ,sys_menu m
  716. where m.menu_name ='演练任务删除' and m.perms='core:drillTask:remove';
  717. -- 修改字典名称
  718. update sys_dict_type SET dict_name = '预案演练项目' WHERE dict_name = '预案演练类型' and dict_type='core_drill_type' limit 1;
  719. -- 新增演练类型字典
  720. delete from sys_dict_type where dict_type='core_drill_category';
  721. delete from sys_dict_data where dict_type='core_drill_category';
  722. INSERT INTO sys_dict_type (dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES ('预案演练类型', 'core_drill_category', '0', null, now(), null, now(), null);
  723. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (10, '应急预案演练', '0', 'core_drill_category', null, 'default', 'N', '0', null, now(), null, now(), null);
  724. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (20, '灭火和应急疏散预案演练', '1', 'core_drill_category', null, 'default', 'N', '0', null, now(), null, now(), null);
  725. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (30, '其他', '2', 'core_drill_category', null, 'default', 'N', '0', null, now(), null, now(), null);
  726. -- 修改演练项目字典值
  727. delete from sys_dict_data where dict_type='core_drill_type';
  728. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1, '防抢应急预案', '1', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-06 15:22:23', '', NULL, NULL);
  729. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2, '防盗应急预案', '2', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-06 15:22:23', '', NULL, NULL);
  730. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3, '反诈应急预案', '3', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-06 15:22:23', '', NULL, NULL);
  731. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (4, '消防及疏散应急预案', '4', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-06 15:22:23', '', NULL, NULL);
  732. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (6, '防自然灾害应急预案', '6', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-06 15:22:23', '超级管理员', '2023-11-21 16:49:57', NULL);
  733. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (7, '其它应急预案', '7', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-16 11:42:24', '超级管理员', '2023-11-21 16:50:07', NULL);
  734. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (5, '防暴防恐应急预案', '5', 'core_drill_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-21 16:46:54', '', NULL, NULL);
  735. -- 报警控制器
  736. ALTER TABLE `core_protection_log`
  737. MODIFY COLUMN `status_updator_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报人姓名' AFTER `status_updator_id`;
  738. -- 修改安全指数机构分数表机构path字段长度
  739. alter table core_safe_month_score modify org_path varchar(225) null comment '机构path';
  740. DELETE FROM sys_menu WHERE id IN(01724607752400044034,01723993298998222849,01719287834364436482,01719288533101928450,01719892877586239490,01720000571298115585,1722135552494403586,01722523915868221442,01724355771043504129,01726904309791121409);
  741. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  742. VALUES (01719287834364436482, '统计报表', 0, 1, 'reportForms', NULL, NULL, 1, 0, 'M', '0', '0', null, '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  743. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  744. VALUES (01719288533101928450, '行社全面检查统计报表', 1719287834364436482, 1, 'core/reportForms', 'core/reportForms/safetyInspectReport', NULL, 1, 1, 'C', '0', '0', 'core:safetyInspectReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  745. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  746. VALUES (01719892877586239490, '外包履职评价统计表', 1719287834364436482, 2, 'evaluateTable', 'evaluateTable/index', NULL, 1, 1, 'C', '0', '0', 'core:safetyInspectReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  747. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  748. VALUES (01720000571298115585, '监控调阅统计报表', 1719287834364436482, 3, 'core', 'core/reportForms/monitorAccessReport', NULL, 1, 1, 'C', '0', '0', 'core:monitorAccessReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  749. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  750. VALUES (01722523915868221442, '履职报表', 1719287834364436482, 5, '/core/resumptionReport', 'core/reportForms/resumptionReport', NULL, 1, 1, 'C', '0', '0', 'core:resumptionReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  751. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  752. VALUES (01723993298998222849, '报警测试报表', 1719287834364436482, 6, '/resumptionReport/intrusionTest', 'core/reportForms/intrusionTestReport', NULL, 1, 1, 'C', '0', '0', 'core:resumptionReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  753. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  754. VALUES (01724607752400044034, '备用电源维护报表', 1719287834364436482, 7, '/resumptionReport/standbyPower', 'core/reportForms/standbyPowerReport', NULL, 1, 1, 'C', '0', '0', 'core:resumptionReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  755. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  756. VALUES (01724355771043504129, '离行式自助银行巡检报表', 1719287834364436482, 7, '/resumptionReport/serviceBank', 'core/reportForms/serviceBankReport', NULL, 1, 1, 'C', '0', '0', 'core:resumptionReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  757. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  758. VALUES (01726904309791121409, '网点负责人自查报表', 1719287834364436482, 9, '/core/safetyInspectReport/selfInspectList', 'core/reportForms/selfInspectReport', NULL, 1, 1, 'C', '0', '0', 'core:safetyInspectReport:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  759. INSERT INTO sys_menu (id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, platform_type, icon, image_path, create_by, create_time, update_by, update_time, remark)
  760. VALUES (1722135552494403586, '登记簿批量导出', 1719287834364436482, 10, 'code/registerbook', 'registerBook/index', null, 1, 0, 'C', '0', '0', 'core:registerBook:list', '1', 'education', null, null, now(), null, now(), null);
  761. delete from sys_role_menu where menu_id IN(01726904309791121409,01724355771043504129,01723993298998222849,01722523915868221442,01719287834364436482,01719288533101928450,01719892877586239490,01720000571298115585,01724607752400044034);
  762. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01726904309791121409);
  763. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01726904309791121409);
  764. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01726904309791121409);
  765. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01726904309791121409);
  766. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01724355771043504129);
  767. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01724355771043504129);
  768. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01724355771043504129);
  769. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01724355771043504129);
  770. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01724607752400044034);
  771. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01724607752400044034);
  772. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01724607752400044034);
  773. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01724607752400044034);
  774. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01723993298998222849);
  775. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01723993298998222849);
  776. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01723993298998222849);
  777. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01723993298998222849);
  778. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01720000571298115585);
  779. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01720000571298115585);
  780. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01720000571298115585);
  781. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01720000571298115585);
  782. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01722523915868221442);
  783. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01722523915868221442);
  784. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01722523915868221442);
  785. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01722523915868221442);
  786. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01719287834364436482);
  787. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01719287834364436482);
  788. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01719287834364436482);
  789. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01719287834364436482);
  790. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01719288533101928450);
  791. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01719288533101928450);
  792. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01719288533101928450);
  793. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01719288533101928450);
  794. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 01719892877586239490);
  795. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 01719892877586239490);
  796. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 01719892877586239490);
  797. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 01719892877586239490);
  798. delete from sys_menu where id =1730138955887800321;
  799. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  800. VALUES (1730138955887800321, '导出', 1719288533101928450, 1, '', null, NULL, 1, 0, 'F', '0', '0', 'core:safetyInspectReport:export', '1', NULL, NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  801. delete from sys_role_menu where menu_id =1730138955887800321;
  802. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (116, 1730138955887800321);
  803. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (120, 1730138955887800321);
  804. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (121, 1730138955887800321);
  805. INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (122, 1730138955887800321);
  806. -- 登记簿批量导出菜单权限赋予
  807. delete from sys_role_menu where menu_id =1722135552494403586;
  808. insert into sys_role_menu select id,1722135552494403586 from sys_role where org_type in (1,2,3,4) and del_flag=0 and status=0;
  809. -- 新增省联社角色
  810. delete from sys_role where role_name IN('省联社部门管理层');
  811. INSERT INTO `sys_role` VALUES (114, '1', '省联社部门管理层', 'default', 0, 1, 1, 1, '0', 0, '超级管理员', '2023-09-04 09:39:13', '超级管理员', '2023-09-16 23:57:16', NULL);
  812. -- 新增驾驶舱
  813. DELETE from `sys_menu` WHERE `id`=01720394197110317057;
  814. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01720394197110317057, '驾驶舱', 0, 1, 'board', 'board/index', NULL, 1, 0, 'C', '0', '0', '', '1', 'chart', NULL, '超级管理员', '2023-11-03 18:55:39', '超级管理员', '2023-11-03 18:56:17', '');
  815. -- 新增临时登记按钮
  816. DELETE from `sys_menu` WHERE `id`=01721420669971296258;
  817. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01721420669971296258, '临时登记', 2318, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:safetycheck:tempregister', '1', NULL, NULL, '超级管理员', '2023-11-06 14:54:29', '', NULL, '');
  818. DELETE from `sys_role_menu` WHERE `menu_id`=1720394197110317057;
  819. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 1720394197110317057);
  820. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 1720394197110317057);
  821. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 1720394197110317057);
  822. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 1720394197110317057);
  823. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 1720394197110317057);
  824. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 1720394197110317057);
  825. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 1720394197110317057);
  826. -- 同步机构 特殊机构移动配置数据
  827. DELETE FROM `sync_fjnx_org_move` WHERE id IN (1,2,3,4);
  828. INSERT INTO `sync_fjnx_org_move` (`id`, `org_code`, `org_type`) VALUES (1, '910020000', 1);
  829. INSERT INTO `sync_fjnx_org_move` (`id`, `org_code`, `org_type`) VALUES (2, '910040000', 1);
  830. INSERT INTO `sync_fjnx_org_move` (`id`, `org_code`, `org_type`) VALUES (3, '910060000', 1);
  831. INSERT INTO `sync_fjnx_org_move` (`id`, `org_code`, `org_type`) VALUES (4, '910030000', 1);
  832. -- 同步机构 业务机构层级配置数据
  833. DELETE FROM `sync_fjnx_org_business_relation` WHERE id <=19;
  834. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (1, 'M39000000', 'M31000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  835. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (2, 'M42000000', 'M33000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  836. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (3, 'M43000000', 'M34000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  837. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (5, 'M45000000', 'M36000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  838. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (6, 'M46000000', 'M37000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  839. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (7, 'M47000000', 'M38000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  840. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (8, '900000000', 'C900000000', 'C900000000', 1, NULL, NULL, NULL, NULL, NULL);
  841. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (9, 'M40000000', '900000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  842. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (10, 'M44000000', '900000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  843. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (11, 'M31000000', NULL, NULL, 2, 'M39000000', NULL, NULL, NULL, NULL);
  844. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (12, 'M32000000', NULL, NULL, 2, 'M41000000', NULL, NULL, NULL, NULL);
  845. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (13, 'M33000000', NULL, NULL, 2, 'M42000000', NULL, NULL, NULL, NULL);
  846. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (14, 'M34000000', NULL, NULL, 2, 'M43000000', NULL, NULL, NULL, NULL);
  847. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (15, 'M35000000', NULL, NULL, 2, 'M39000000', NULL, NULL, NULL, NULL);
  848. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (16, 'M36000000', NULL, NULL, 2, 'M45000000', NULL, NULL, NULL, NULL);
  849. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (17, 'M37000000', NULL, NULL, 2, 'M46000000', NULL, NULL, NULL, NULL);
  850. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (18, 'M38000000', NULL, NULL, 2, 'M47000000', NULL, NULL, NULL, NULL);
  851. INSERT INTO `sync_fjnx_org_business_relation` (`id`, `org_code`, `business_parent_code`, `tree_show_parent_code`, `org_type`, `dqhs_org_code`, `create_time`, `modified_name`, `update_time`, `modified_id`) VALUES (19, 'M41000000', 'M32000000', 'C900000000', 3, NULL, NULL, NULL, NULL, NULL);
  852. DELETE FROM sys_menu WHERE id IN(01720259442805620738,01717076927401005058,01717079254782545922);
  853. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  854. VALUES (01720259442805620738, '外包评价', 0, 1, 'core/evaluate', NULL, NULL, 1, 0, 'M', '0', '0', 'core:send:list', '1', 'edit', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  855. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  856. VALUES (01717076927401005058, '评价计划管理', 01720259442805620738, 1, 'resumption', 'resumptionEvaluate/evaluate/index', NULL, 1, 1, 'C', '0', '0', 'core:evaluatePlan:list', '1', 'excel', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  857. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
  858. VALUES (01717079254782545922, '外包评价', 01720259442805620738, 2, 'wbpj', 'resumptionEvaluate/evaluatePlan/index', NULL, 1, 1, 'C', '0', '0', 'core:evaluateTask:list', '1', 'checkbox', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
  859. DELETE from `sys_role_menu` WHERE `menu_id` in(01720259442805620738,01717076927401005058,01717079254782545922);
  860. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01720259442805620738);
  861. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01720259442805620738);
  862. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01720259442805620738);
  863. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01720259442805620738);
  864. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01720259442805620738);
  865. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01720259442805620738);
  866. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01720259442805620738);
  867. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01720259442805620738);
  868. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01720259442805620738);
  869. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (128, 01720259442805620738);
  870. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (129, 01720259442805620738);
  871. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01717076927401005058);
  872. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01717076927401005058);
  873. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01717076927401005058);
  874. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01717076927401005058);
  875. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01717076927401005058);
  876. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01717076927401005058);
  877. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01717076927401005058);
  878. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01717076927401005058);
  879. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01717076927401005058);
  880. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (128, 01717076927401005058);
  881. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (129, 01717076927401005058);
  882. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01717079254782545922);
  883. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01717079254782545922);
  884. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01717079254782545922);
  885. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01717079254782545922);
  886. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01717079254782545922);
  887. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01717079254782545922);
  888. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01717079254782545922);
  889. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01717079254782545922);
  890. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01717079254782545922);
  891. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (128, 01717079254782545922);
  892. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (129, 01717079254782545922);
  893. -- 天气接口配置
  894. delete from sys_config where config_key='WEATHER_URL';
  895. INSERT INTO sys_config (config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark) VALUES (191, '天气接口', 'WEATHER_URL', 'https://ali-weather.showapi.com', 'Y', NULL, now(), NULL, now(), NULL);
  896. -- 知识库状态修改
  897. DELETE FROM sys_dict_data WHERE dict_type = 'materials_status' and dict_value=2;
  898. UPDATE sys_dict_data t SET t.dict_label = '已发布' WHERE dict_type = 'materials_status' and dict_value=1;
  899. UPDATE sys_dict_data t SET t.dict_label = '待发布' WHERE dict_type = 'materials_status' and dict_value=0;
  900. DELETE FROM sys_menu WHERE id IN(01714200330384744450,01714195109957963777);
  901. DELETE FROM sys_menu WHERE menu_name IN('导入设备','导出模版');
  902. INSERT INTO `sys_menu` VALUES (01714200330384744450, '导入设备', 2050, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:device:importData', '1', '#', NULL, '超级管理员', '2023-09-04 17:46:17', '超级管理员', '2023-09-04 17:47:06', '');
  903. INSERT INTO `sys_menu` VALUES (01714195109957963777, '导出模版', 2050, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:device:export', '1', '#', NULL, '超级管理员', '2023-09-04 17:46:17', '超级管理员', '2023-09-04 17:47:06', '');
  904. DELETE from `sys_role_menu` WHERE `menu_id` in (01714200330384744450,01714195109957963777);
  905. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01714200330384744450);
  906. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01714200330384744450);
  907. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01714200330384744450);
  908. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01714200330384744450);
  909. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01714200330384744450);
  910. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01714200330384744450);
  911. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01714200330384744450);
  912. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01714195109957963777);
  913. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01714195109957963777);
  914. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01714195109957963777);
  915. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01714195109957963777);
  916. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01714195109957963777);
  917. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01714195109957963777);
  918. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01714195109957963777);
  919. -- 变更安全检查类型
  920. DELETE FROM `sys_dict_data` WHERE `dict_type` = 'check_type';
  921. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '【定期检查】全省农信系统安全检查', '1', 'check_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-12 15:00:48', '省联社账号', '2023-11-13 16:57:40', NULL);
  922. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '【定期检查】办事处辖区安全检查', '2', 'check_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-12 15:00:59', '省联社账号', '2023-11-13 16:57:52', NULL);
  923. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 3, '【定期检查】营业网点安全保卫检查', '3', 'check_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-12 15:01:25', '省联社账号', '2023-11-13 16:58:03', NULL);
  924. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 4, '【定期检查】行社全面安全检查', '4', 'check_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-12 15:01:36', '省联社账号', '2023-11-13 16:58:12', NULL);
  925. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 5, '【不定期检查】阶段性检查 ', '5', 'check_type', NULL, 'default', 'N', '0', '省联社账号', '2023-11-13 16:58:27', '', NULL, NULL);
  926. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 6, ' 【不定期检查】专项检查 ', '6', 'check_type', NULL, 'default', 'N', '0', '省联社账号', '2023-11-13 16:58:40', '', NULL, NULL);
  927. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 7, '其他', '7', 'check_type', NULL, 'default', 'N', '0', '省联社账号', '2023-11-13 16:58:53', '', NULL, NULL);
  928. delete from sys_dict_data where dict_type = 'org_extend_type';
  929. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113001, 1, '营业网点', '1', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:34:57', '', NULL, NULL);
  930. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113002, 2, '在行式自助银行', '2', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-09-04 15:35:17', '超级管理员', '2023-11-13 11:34:10', NULL);
  931. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113003, 3, '离行式自助银行', '3', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 11:34:31', '', NULL, NULL);
  932. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113004, 4, '中心业务库', '4', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 11:34:50', '', NULL, NULL);
  933. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113005, 5, '网点业务库', '5', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 11:35:04', '', NULL, NULL);
  934. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113006, 6, '保管箱库', '6', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 11:35:16', '', NULL, NULL);
  935. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113007, 7, '监控中心', '7', 'org_extend_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 11:35:36', '', NULL, NULL);
  936. delete from sys_dict_type where dict_type = 'duty_options';
  937. delete from sys_dict_data where dict_type = 'duty_options';
  938. INSERT INTO `sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113001, '夜间值守方式', 'duty_options', '0', '超级管理员', '2023-11-13 12:00:27', '', NULL, '同楼 和 远程');
  939. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113008, 1, '远程中心值守', '1', 'duty_options', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 12:01:10', '', NULL, NULL);
  940. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113009, 2, '同楼异地值守', '2', 'duty_options', NULL, 'default', 'N', '0', '超级管理员', '2023-11-13 12:01:25', '', NULL, NULL);
  941. -- 修改/新增教育培训类型字典信息
  942. update sys_dict_data set dict_label='行社安全保卫教育培训' where dict_label='每月安全培训教育' and dict_type='edu_training_type' limit 1;
  943. update sys_dict_data set dict_label='行社消防安全培训' where dict_label='专项安全培训教育' and dict_type='edu_training_type' limit 1;
  944. delete from sys_dict_data where dict_type='edu_training_type' and dict_label in ('营业网点安全保卫教育培训','营业网点消防安全培训','其他');
  945. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (2, '营业网点安全保卫教育培训', '2', 'edu_training_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  946. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (3, '营业网点消防安全培训', '3', 'edu_training_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  947. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (4, '其他', '4', 'edu_training_type', null, 'default', 'N', '0', null, now(), null, now(), null);
  948. -- 履职任务类型增加其它,履职时间增加工作时间
  949. update sys_dict_type set dict_name='履职任务类型' WHERE dict_type='resumption_plan_type';
  950. DELETE from sys_dict_data WHERE dict_type='resumption_plan_type' and dict_value=8;
  951. DELETE from sys_dict_data WHERE dict_type='resumption_plan_exec' and dict_value=6;
  952. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (8, '其它', '8', 'resumption_plan_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-14 11:03:01', '', NULL, NULL);
  953. INSERT INTO `sys_dict_data` ( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (6, '工作时间', '6', 'resumption_plan_exec', NULL, 'default', 'N', '0', '超级管理员', '2023-11-14 11:43:43', '', NULL, NULL);
  954. -- Web端 出入管理
  955. DELETE FROM sys_menu WHERE id IN(01712729517575520258);
  956. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01712729517575520258, '出入管理', 0, 100, 'Introduce', NULL, NULL, 1, 0, 'M', '0', '0', '', '1', 'client', NULL, '超级管理员', '2023-10-13 15:18:50', '超级管理员', '2023-10-13 15:25:27', '');
  957. -- 介绍信管理
  958. DELETE FROM sys_menu WHERE id IN(01712730072704237569,01722086291781177346,01722089558964723714,01722089643559641090,01722133971111796737);
  959. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01712730072704237569, '介绍信管理', 1712729517575520258, 1, 'core/letter', 'core/outIn/letter/index', NULL, 1, 0, 'C', '0', '0', 'core:letter:query', '1', 'color', NULL, '超级管理员', '2023-10-13 15:21:02', '超级管理员', '2023-11-13 18:36:53', '');
  960. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722086291781177346, '新增', 1712730072704237569, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:add', '1', NULL, NULL, 'zlsls01', '2023-11-08 10:59:25', '', NULL, '');
  961. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722089558964723714, '删除', 1712730072704237569, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:remove', '1', NULL, NULL, '超级管理员', '2023-11-08 11:12:00', '超级管理员', '2023-11-08 11:12:58', '');
  962. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722089643559641090, '编辑', 1712730072704237569, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:edit', '1', NULL, NULL, '超级管理员', '2023-11-08 11:12:20', '超级管理员', '2023-11-08 11:13:05', '');
  963. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722133971111796737, '查询', 1712730072704237569, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:query', '1', NULL, NULL, '超级管理员', '2023-11-08 14:08:29', '', NULL, '');
  964. DELETE FROM `sys_role_menu` WHERE menu_id IN(01712730072704237569,01722086291781177346,01722089558964723714,01722089643559641090,01722133971111796737);
  965. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01712730072704237569);
  966. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722086291781177346);
  967. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722089558964723714);
  968. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722089643559641090);
  969. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722133971111796737);
  970. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01712730072704237569);
  971. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722086291781177346);
  972. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722089558964723714);
  973. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722089643559641090);
  974. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722133971111796737);
  975. -- 出入事项审批
  976. DELETE FROM sys_menu WHERE id IN(01722459057471643650,01722497238984318978,01722551208603836417);
  977. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722459057471643650, '来访事项审批', 1712729517575520258, 1, 'core/letter/approve', 'core/outIn/approve/index', NULL, 1, 0, 'C', '0', '0', 'core:letter:approveList', '1', 'validCode', NULL, '超级管理员', '2023-11-09 11:40:15', '超级管理员', '2023-11-09 11:47:28', '');
  978. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722497238984318978, '查询', 1722459057471643650, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:query', '1', NULL, NULL, '超级管理员', '2023-11-09 14:11:58', '超级管理员', '2023-11-13 18:38:23', '');
  979. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722551208603836417, '审核', 1722459057471643650, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:approve', '1', NULL, NULL, '超级管理员', '2023-11-09 17:46:26', '', NULL, '');
  980. DELETE FROM `sys_role_menu` WHERE menu_id IN(01722459057471643650,01722497238984318978,01722551208603836417);
  981. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01722459057471643650);
  982. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01722497238984318978);
  983. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01722551208603836417);
  984. -- 出入情况查询
  985. DELETE FROM sys_menu WHERE id IN(01722881657557610498,01722883092282208257);
  986. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722881657557610498, '来访情况跟踪', 1712729517575520258, 3, 'core/outin/record', 'core/outIn/outInLog/index', NULL, 1, 0, 'C', '0', '0', 'core:record:list', '1', 'log', NULL, '超级管理员', '2023-11-10 15:39:31', '超级管理员', '2023-11-10 15:40:48', '');
  987. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722883092282208257, '查询', 1722881657557610498, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:record:list', '1', NULL, NULL, '超级管理员', '2023-11-10 15:45:13', '', NULL, '');
  988. DELETE FROM `sys_role_menu` WHERE menu_id IN(01722881657557610498,01722883092282208257);
  989. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722881657557610498);
  990. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722881657557610498);
  991. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01722881657557610498);
  992. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01722881657557610498);
  993. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01722881657557610498);
  994. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01722881657557610498);
  995. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01722881657557610498);
  996. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01722881657557610498);
  997. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01722881657557610498);
  998. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (114, 01722883092282208257);
  999. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01722883092282208257);
  1000. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01722883092282208257);
  1001. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01722883092282208257);
  1002. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01722883092282208257);
  1003. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01722883092282208257);
  1004. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01722883092282208257);
  1005. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01722883092282208257);
  1006. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01722883092282208257);
  1007. -- 移动端 出入管理菜单
  1008. DELETE FROM sys_menu WHERE id IN(01719176094776664066);
  1009. INSERT INTO `soc`.`sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01719176094776664066, '来访', 0, 4, '‘’', NULL, NULL, 1, 0, 'M', '0', '0', '', '0', NULL, NULL, '超级管理员', '2023-10-31 10:14:56', '超级管理员', '2023-10-31 10:38:38', '');
  1010. -- 出入人员登记
  1011. DELETE FROM sys_menu WHERE id IN(01719180104111788033,01724016270912864258,01724016373870444545);
  1012. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01719180104111788033, '来访核验登记', 1719176094776664066, 3, '/visitRecord', NULL, NULL, 1, 0, 'C', '0', '0', 'core:record:list', '0', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAABWCAMAAACNSvr7AAAAM1BMVEVHcExsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHS6r07EAAAAEHRSTlMAIKDQEPAwQIDAUJDgcGCwLB1LQwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAghJREFUWIXtmNGOhCAMRasCgqjD/3/tBtSRAiOtzmazCfdR67GU0gLQ1NTU9FfqRo7ITlrH0qzw50prrQrYkYd1ziDqsD0TGVdzuS76eD2eDRk4cE1HiVinE+50/syWuC8KNQwbcZWMRpE67Lkkb4NsxBVDHJ2pwCVjkXWPoq6/xV3cr3DT/EwXzE2ukBgrL0bG4Q6Ju8sny95VZK6s80w9LGvYzWq3XpNX+XJ7c+caVu7Wc7Ig/KsOhJ3L3FFXNO3WFkTqgwIw6Sxx520WWXTXQDGpJY8bai2q2TYksxSpJYc7+mgogPWMsNmS+dm6gJBjvQB1xNj7afJlzOf6ujAoEOY9Z3lwI+5iKto9UpuX094RlmJw2eviLLorwCiDnyYPbsSVFerOPVPMAgjtO4KRWXGIuNVdREiwqKO5fieUujxz3jo0qrT13OcaV/D3ORe1nkINu8lVMVZWmjidi/q6LM/WHS6qYmvNmsxFDbiUsTe5sbvXqcDjRk0irzIPuOQM43HPJKtlGI97ThvtiMHlymqG8bj7eYG2s2dwfcmRPf2YReVOxlLSgMSd4h1QcFWMNjuhsLl4Rz4fjx5zX4jrKtZ0rnjFnV9/jfvIunEb979zLzdwSAOLK4ngzjgW17m5dgrwGs76Q+VyROMqLpZ6ybTWTxaxCldwn8S5nqRfXTU1NTUhAcAPovdX9YWaiFoAAAAASUVORK5CYII=', NULL, '超级管理员', '2023-10-31 10:30:52', '超级管理员', '2023-11-13 18:54:33', '');
  1013. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724016270912864258, '新增', 1719180104111788033, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:record:add', '0', NULL, NULL, '超级管理员', '2023-11-13 18:48:04', '', NULL, '');
  1014. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724016373870444545, '修改', 1719180104111788033, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:record:edit', '0', NULL, NULL, '超级管理员', '2023-11-13 18:48:28', '', NULL, '');
  1015. DELETE FROM `sys_role_menu` WHERE menu_id IN(01719180104111788033,01724016270912864258,01724016373870444545);
  1016. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01719180104111788033);
  1017. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01724016270912864258);
  1018. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01724016373870444545);
  1019. -- 出入事项审批
  1020. DELETE FROM sys_menu WHERE id IN(01721714093297004546,01724017039149973506);
  1021. INSERT INTO `soc`.`sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01721714093297004546, '来访审批', 1719176094776664066, 2, '/visitCheck', NULL, NULL, 1, 0, 'C', '0', '0', 'core:letter:approveList', '0', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAABWCAMAAACNSvr7AAAAM1BMVEVHcExsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHS6r07EAAAAEHRSTlMAIKDQEPAwQIDAUJDgcGCwLB1LQwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAghJREFUWIXtmNGOhCAMRasCgqjD/3/tBtSRAiOtzmazCfdR67GU0gLQ1NTU9FfqRo7ITlrH0qzw50prrQrYkYd1ziDqsD0TGVdzuS76eD2eDRk4cE1HiVinE+50/syWuC8KNQwbcZWMRpE67Lkkb4NsxBVDHJ2pwCVjkXWPoq6/xV3cr3DT/EwXzE2ukBgrL0bG4Q6Ju8sny95VZK6s80w9LGvYzWq3XpNX+XJ7c+caVu7Wc7Ig/KsOhJ3L3FFXNO3WFkTqgwIw6Sxx520WWXTXQDGpJY8bai2q2TYksxSpJYc7+mgogPWMsNmS+dm6gJBjvQB1xNj7afJlzOf6ujAoEOY9Z3lwI+5iKto9UpuX094RlmJw2eviLLorwCiDnyYPbsSVFerOPVPMAgjtO4KRWXGIuNVdREiwqKO5fieUujxz3jo0qrT13OcaV/D3ORe1nkINu8lVMVZWmjidi/q6LM/WHS6qYmvNmsxFDbiUsTe5sbvXqcDjRk0irzIPuOQM43HPJKtlGI97ThvtiMHlymqG8bj7eYG2s2dwfcmRPf2YReVOxlLSgMSd4h1QcFWMNjuhsLl4Rz4fjx5zX4jrKtZ0rnjFnV9/jfvIunEb979zLzdwSAOLK4ngzjgW17m5dgrwGs76Q+VyROMqLpZ6ybTWTxaxCldwn8S5nqRfXTU1NTUhAcAPovdX9YWaiFoAAAAASUVORK5CYII=', NULL, '超级管理员', '2023-11-07 10:20:02', '超级管理员', '2023-11-13 18:55:10', '');
  1022. INSERT INTO `soc`.`sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724017039149973506, '审批', 1721714093297004546, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:approve', '0', NULL, NULL, '超级管理员', '2023-11-13 18:51:07', '', NULL, '');
  1023. DELETE FROM `sys_role_menu` WHERE menu_id IN(01721714093297004546,01724017039149973506);
  1024. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01721714093297004546);
  1025. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (121, 01724017039149973506);
  1026. -- 出入事项申请
  1027. DELETE FROM sys_menu WHERE id IN(01721714556507549698,01724017221941936130,01724017294985740290,01724017404872310786);
  1028. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01721714556507549698, '来访申请', 1719176094776664066, 1, '/visitRegister', NULL, NULL, 1, 0, 'C', '0', '0', 'core:letter:query', '0', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAABWCAMAAACNSvr7AAAAM1BMVEVHcExsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHRsnHS6r07EAAAAEHRSTlMAIKDQEPAwQIDAUJDgcGCwLB1LQwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAghJREFUWIXtmNGOhCAMRasCgqjD/3/tBtSRAiOtzmazCfdR67GU0gLQ1NTU9FfqRo7ITlrH0qzw50prrQrYkYd1ziDqsD0TGVdzuS76eD2eDRk4cE1HiVinE+50/syWuC8KNQwbcZWMRpE67Lkkb4NsxBVDHJ2pwCVjkXWPoq6/xV3cr3DT/EwXzE2ukBgrL0bG4Q6Ju8sny95VZK6s80w9LGvYzWq3XpNX+XJ7c+caVu7Wc7Ig/KsOhJ3L3FFXNO3WFkTqgwIw6Sxx520WWXTXQDGpJY8bai2q2TYksxSpJYc7+mgogPWMsNmS+dm6gJBjvQB1xNj7afJlzOf6ujAoEOY9Z3lwI+5iKto9UpuX094RlmJw2eviLLorwCiDnyYPbsSVFerOPVPMAgjtO4KRWXGIuNVdREiwqKO5fieUujxz3jo0qrT13OcaV/D3ORe1nkINu8lVMVZWmjidi/q6LM/WHS6qYmvNmsxFDbiUsTe5sbvXqcDjRk0irzIPuOQM43HPJKtlGI97ThvtiMHlymqG8bj7eYG2s2dwfcmRPf2YReVOxlLSgMSd4h1QcFWMNjuhsLl4Rz4fjx5zX4jrKtZ0rnjFnV9/jfvIunEb979zLzdwSAOLK4ngzjgW17m5dgrwGs76Q+VyROMqLpZ6ybTWTxaxCldwn8S5nqRfXTU1NTUhAcAPovdX9YWaiFoAAAAASUVORK5CYII=', NULL, '超级管理员', '2023-11-07 10:21:53', '超级管理员', '2023-11-13 18:54:47', '');
  1029. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724017221941936130, '新增', 1721714556507549698, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:add', '0', NULL, NULL, '超级管理员', '2023-11-13 18:51:51', '', NULL, '');
  1030. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724017294985740290, '修改', 1721714556507549698, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:edit', '0', NULL, NULL, '超级管理员', '2023-11-13 18:52:08', '', NULL, '');
  1031. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01724017404872310786, '删除', 1721714556507549698, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'core:letter:remove', '0', NULL, NULL, '超级管理员', '2023-11-13 18:52:34', '', NULL, '');
  1032. DELETE FROM `sys_role_menu` WHERE menu_id IN(01721714556507549698,01724017221941936130,01724017294985740290,01724017404872310786);
  1033. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01721714556507549698);
  1034. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01724017221941936130);
  1035. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01724017294985740290);
  1036. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (122, 01724017404872310786);
  1037. -- 删除检查登记授权按钮权限
  1038. DELETE from sys_menu WHERE perms='core:safetycheck:grant' and menu_type='F';
  1039. -- 删除履职内容库管理页面,改为按钮
  1040. DELETE FROM sys_menu WHERE menu_name like '履职内容库管理%';
  1041. DELETE FROM sys_role_menu WHERE menu_id =1726808689796902913;
  1042. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01726808689796902913, '履职内容库管理', 2004, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'resumption:rule:contentmanage', '1', NULL, NULL, 'jwx', '2023-11-21 11:44:08', '', NULL, '');
  1043. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 1726808689796902913);
  1044. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 1726808689796902913);
  1045. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 1726808689796902913);
  1046. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 1726808689796902913);
  1047. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 1726808689796902913);
  1048. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 1726808689796902913);
  1049. DELETE FROM sys_menu WHERE id =2332 or parent_id=2332 or id=01726875550324551681;
  1050. DELETE FROM sys_role_menu WHERE menu_id =01726875550324551681;
  1051. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01726875550324551681, '内容库管理', 2327, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'safetycheck:rule:contentmanage', '1', NULL, NULL, 'jwx', '2023-11-21 16:09:49', '', NULL, '');
  1052. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (115, 01726875550324551681);
  1053. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (116, 01726875550324551681);
  1054. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (117, 01726875550324551681);
  1055. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (118, 01726875550324551681);
  1056. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (119, 01726875550324551681);
  1057. INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (120, 01726875550324551681);
  1058. UPDATE sys_menu set menu_name='履职内容库' WHERE menu_name='履职内容库定义';
  1059. UPDATE sys_menu set menu_name='检查内容库' WHERE menu_name='检查内容库定义';
  1060. -- 更新菜单名称
  1061. update sys_menu set menu_name='隐患管理' WHERE menu_name='问题处理管理' and menu_type='M';
  1062. update sys_menu set menu_name='综合考核' WHERE menu_name='安全综合管理评价' and menu_type='M';
  1063. update sys_menu set menu_name='外包考核评价',order_num=4,parent_id=01712277074707779586 WHERE menu_name='评价计划管理' and menu_type='C';
  1064. update sys_menu set menu_name='外包考核结果',order_num=5,parent_id=01712277074707779586 WHERE menu_name='外包评价' and menu_type='C';
  1065. update sys_menu set menu_name='高管工作部署' WHERE menu_name='行社高管部署登记' and menu_type='C';
  1066. update sys_menu set menu_name='年度工作计划' WHERE menu_name='安全保卫部年度计划' and menu_type='C';
  1067. DELETE from sys_menu WHERE id=1720259442805620738;
  1068. -- 履职任务类型修正
  1069. DELETE FROM sys_dict_data where dict_type='resumption_plan_type';
  1070. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '营业前安全检查', '1', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-28 18:44:08', '超级管理员', '2023-09-28 15:16:39', NULL);
  1071. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '营业期间安全管理', '2', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-28 18:44:19', '超级管理员', '2023-09-28 15:16:51', NULL);
  1072. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 3, '营业终了安全管理', '3', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-29 10:56:15', '超级管理员', '2023-09-28 15:17:11', NULL);
  1073. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 4, '“110”入侵报警系统测试', '4', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-29 10:56:35', '超级管理员', '2023-09-28 15:17:23', NULL);
  1074. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 5, '不间断电源(UPS)维护', '5', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-29 10:56:50', '省联社账号', '2023-11-16 10:19:49', NULL);
  1075. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 6, '离行式自助银行巡检', '6', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-29 10:57:08', '超级管理员', '2023-09-28 15:17:42', NULL);
  1076. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 7, '非营业时间安全管理', '7', 'resumption_plan_type', NULL, 'default', 'N', '0', '何悦', '2023-08-29 10:57:26', '超级管理员', '2023-09-28 15:17:51', NULL);
  1077. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 8, '其他', '8', 'resumption_plan_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-14 11:03:01', '省联社账号', '2023-11-16 10:19:31', NULL);
  1078. -- 出入管理相关表
  1079. CREATE TABLE if not exists `core_introduce_letter` (
  1080. `id` bigint NOT NULL,
  1081. `letter_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '介绍信名称',
  1082. `start_time` datetime DEFAULT NULL COMMENT '有效开始时间',
  1083. `end_time` datetime DEFAULT NULL COMMENT '有效结束时间',
  1084. `letter_file` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '介绍信文件',
  1085. `org_id` bigint DEFAULT NULL COMMENT '创建机构',
  1086. `org_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建机构',
  1087. `org_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建机构',
  1088. `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  1089. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1090. `deleted` int DEFAULT NULL COMMENT '0正常1删除',
  1091. `letter_no` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '介绍信编号',
  1092. `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  1093. `reasons` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '出入事由',
  1094. `status` int DEFAULT NULL COMMENT '状态:0 草稿 ,1 使用中, 2 已逾期',
  1095. `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
  1096. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  1097. `type` int DEFAULT NULL COMMENT '类型:1 职能部门出入, 2 临时出入,3 紧急出入',
  1098. PRIMARY KEY (`id`) USING BTREE
  1099. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='介绍信';
  1100. CREATE TABLE if not exists `core_introduce_letter_user` (
  1101. `id` bigint DEFAULT NULL,
  1102. `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  1103. `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  1104. `id_card` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  1105. `img_file` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  1106. `letter_id` bigint DEFAULT NULL,
  1107. `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  1108. `create_time` datetime DEFAULT NULL,
  1109. KEY `index_letter_id` (`letter_id`) USING BTREE
  1110. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='介绍信人员表';
  1111. CREATE TABLE if not exists `core_introduce_letter_to_org` (
  1112. `letter_id` bigint DEFAULT NULL,
  1113. `org_id` bigint DEFAULT NULL,
  1114. KEY `index_org_id` (`org_id`) USING BTREE,
  1115. KEY `index_letter_id` (`letter_id`) USING BTREE
  1116. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='介绍信接待机构';
  1117. CREATE TABLE if not exists `core_introduce_letter_approve_log` (
  1118. `id` bigint NOT NULL,
  1119. `letter_id` bigint DEFAULT NULL COMMENT '介绍信id',
  1120. `approve_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人',
  1121. `approve_user_id` bigint DEFAULT NULL COMMENT '审核人Id',
  1122. `approve_time` datetime DEFAULT NULL COMMENT '审核时间',
  1123. `approve_status` int DEFAULT NULL COMMENT '审核状态:0待审批1通过2不通过3逾期',
  1124. `approve_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  1125. `org_id` bigint DEFAULT NULL COMMENT '接待机构',
  1126. PRIMARY KEY (`id`) USING BTREE,
  1127. KEY `index_letter_id` (`letter_id`) USING BTREE,
  1128. KEY `index_org_id` (`org_id`) USING BTREE
  1129. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='介绍信审批记录';
  1130. CREATE TABLE if not exists `core_out_in_record` (
  1131. `id` bigint NOT NULL,
  1132. `org_id` bigint DEFAULT NULL COMMENT '出入机构',
  1133. `letter_id` bigint DEFAULT NULL COMMENT '介绍信/出入申请ID',
  1134. `letter_user_id` bigint DEFAULT NULL COMMENT '介绍信/出入申请中 人员ID',
  1135. `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '登记人员',
  1136. `create_time` datetime DEFAULT NULL COMMENT '登记时间',
  1137. `arrival_time` datetime DEFAULT NULL COMMENT '到达时间',
  1138. `departure_time` datetime DEFAULT NULL COMMENT '离开时间',
  1139. `accompanying_person` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '陪同人员',
  1140. `check_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '核验照片',
  1141. PRIMARY KEY (`id`),
  1142. KEY `index_letter_id` (`letter_id`) USING BTREE
  1143. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='人员出入登记表';
  1144. -- 出入管理相关字典
  1145. DELETE FROM `sys_dict_type` where dict_type='out_in_type';
  1146. DELETE FROM `sys_dict_data` where dict_type='out_in_type';
  1147. INSERT INTO `sys_dict_type` (`dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( '出入类型', 'out_in_type', '0', 'zlsls01', '2023-11-08 17:24:55', '', NULL, NULL);
  1148. INSERT INTO `sys_dict_data` ( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (0, '电子', '1', 'out_in_type', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:25:16', '', NULL, NULL);
  1149. INSERT INTO `sys_dict_data` ( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1, '纸质', '2', 'out_in_type', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:25:24', '', NULL, NULL);
  1150. INSERT INTO `sys_dict_data` ( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2, '紧急', '3', 'out_in_type', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:25:32', '', NULL, NULL);
  1151. DELETE FROM `sys_dict_type` where dict_type='out_in_approve_status';
  1152. DELETE FROM `sys_dict_data` where dict_type='out_in_approve_status';
  1153. INSERT INTO `sys_dict_type` (`dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入申请审批状态', 'out_in_approve_status', '0', 'zlsls01', '2023-11-08 17:27:43', '', NULL, NULL);
  1154. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (0, '待审批', '0', 'out_in_approve_status', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:28:10', '', NULL, NULL);
  1155. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1, '同意', '1', 'out_in_approve_status', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:28:20', '', NULL, NULL);
  1156. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2, '不同意', '2', 'out_in_approve_status', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:28:28', '', NULL, NULL);
  1157. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3, '已失效', '3', 'out_in_approve_status', NULL, 'default', 'N', '0', 'zlsls01', '2023-11-08 17:28:34', '', NULL, NULL);
  1158. DELETE FROM `sys_dict_type` where dict_type='letter_status';
  1159. DELETE FROM `sys_dict_data` where dict_type='letter_status';
  1160. INSERT INTO `sys_dict_type` (`dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('介绍信状态', 'letter_status', '0', '超级管理员', '2023-10-13 15:29:50', '', NULL, NULL);
  1161. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (0, '草稿', '0', 'letter_status', NULL, 'default', 'N', '0', '超级管理员', '2023-10-13 15:30:40', 'zlsls01', '2023-11-08 11:04:29', NULL);
  1162. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1, '使用中', '1', 'letter_status', NULL, 'default', 'N', '0', '超级管理员', '2023-10-13 15:31:04', 'zlsls01', '2023-11-08 11:04:36', NULL);
  1163. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2, '已失效', '2', 'letter_status', NULL, 'default', 'N', '0', '超级管理员', '2023-10-13 15:31:17', 'zlsls01', '2023-11-08 11:04:41', NULL);
  1164. DELETE FROM `sys_dict_type` where dict_type='letter_id_type';
  1165. DELETE FROM `sys_dict_data` where dict_type='letter_id_type';
  1166. INSERT INTO `soc`.`sys_dict_type` (`dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('介绍信证件类型', 'letter_id_type', '0', '超级管理员', '2023-11-21 15:24:42', '', NULL, NULL);
  1167. INSERT INTO `soc`.`sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 0, '身份证', '0', 'letter_id_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-21 15:25:09', '', NULL, NULL);
  1168. INSERT INTO `soc`.`sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '工作证', '1', 'letter_id_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-21 15:25:22', '', NULL, NULL);
  1169. INSERT INTO `soc`.`sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '其他', '2', 'letter_id_type', NULL, 'default', 'N', '0', '超级管理员', '2023-11-21 15:25:30', '', NULL, NULL);
  1170. UPDATE sys_dict_data set dict_label='待整改' WHERE dict_type='question_reform_status' and dict_value=10;
  1171. update sys_dict_data SET dict_label='报警控制器' WHERE dict_label='报警主机';
  1172. delete from sys_dict_data where dict_type= 'sys_device_type';
  1173. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1174. VALUES (5, '硬盘录像机', '0', 'sys_device_type', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1175. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1176. VALUES (4, '报警控制器', '1', 'sys_device_type', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1177. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1178. VALUES (3, '摄像机', '2', 'sys_device_type', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1179. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1180. VALUES (1, '灭火器', '3', 'sys_device_type', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1181. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1182. VALUES (2, '过滤式消防自助呼吸器', '4', 'sys_device_type', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1183. DELETE FROM `sys_menu` where id =00000000000000002318;
  1184. INSERT INTO `sys_menu`(`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (00000000000000002318, '检查登记跟踪', 2326, 4, 'saftask', 'safetycheck/task/index', NULL, 1, 0, 'C', '0', '0', 'core:task:list', '1', 'documentation', NULL, '超级管理员', '2023-09-21 10:37:52', '省联社账号', '2023-11-21 16:41:17', '');
  1185. delete from sys_dict_data where dict_type='science_protection';
  1186. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1187. VALUES (3, '硬盘录像机', '0', 'science_protection', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1188. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1189. VALUES (2, '报警控制器', '1', 'science_protection', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1190. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1191. VALUES (1, '摄像机', '2', 'science_protection', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1192. delete from sys_dict_data where dict_type='fire_fighting';
  1193. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1194. VALUES (1, '过滤式消防自助呼吸器', '4', 'fire_fighting', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1195. INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark)
  1196. VALUES (2, '灭火器', '3', 'fire_fighting', null, 'default', 'N', '0', '超级管理员', now(), '', null, null);
  1197. DELETE FROM `sys_dict_data` WHERE dict_code in (20231113208,20231113210);
  1198. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113208, 3, '已逾期', '12', 'question_reform_status', NULL, 'default', 'N', '0', 'jwx', '2023-11-22 14:23:36', '', NULL, NULL);
  1199. INSERT INTO `sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (20231113210, 4, '已逾期', '4', 'question_confirm_status', NULL, 'default', 'N', '0', '超级管理员', '2023-11-22 17:28:29', '超级管理员', '2023-11-22 17:28:38', NULL);
  1200. -- 删除多余的表
  1201. drop TABLE if EXISTS sys_bank_physical_defense_construction;
  1202. -- 新增演练项目字典,及修改字典排序
  1203. -- DELETE from sys_dict_data where dict_type='core_drill_type' and dict_label='防爆防恐应急预案' limit 1;
  1204. -- INSERT INTO `sys_dict_data`(`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (7, '防爆防恐应急预案', '7', 'core_drill_type', NULL, 'default', 'N', '0', NULL, NOW(), NULL, NOW(), NULL);
  1205. -- update sys_dict_data set dict_sort =5 where dict_type='core_drill_type' and dict_label='防爆防恐应急预案' limit 1;
  1206. -- update sys_dict_data set dict_sort =6 where dict_type='core_drill_type' and dict_label='防自然灾害应急预案' limit 1;
  1207. -- update sys_dict_data set dict_sort =7 where dict_type='core_drill_type' and dict_label='其它应急预案' limit 1;
  1208. ALTER TABLE `core_question`
  1209. MODIFY COLUMN `reform_status` int NULL DEFAULT NULL COMMENT '整改状态。10待整改,11已整改,12已逾期' AFTER `confirm_status`;
  1210. delete from `sys_dict_data` Where dict_type='question_reform_status' and dict_value=12;
  1211. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3, '已逾期', '12', 'question_reform_status', NULL, 'default', 'N', '0', 'jwx', '2023-11-22 14:23:36', '', NULL, NULL);
  1212. ALTER TABLE `core_question`
  1213. MODIFY COLUMN `reform_status` int NULL DEFAULT NULL COMMENT '整改状态。10待整改,11已整改,12已逾期' AFTER `confirm_status`;
  1214. delete from `sys_dict_data` Where dict_type='question_reform_status' and dict_value=12;
  1215. INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3, '已逾期', '12', 'question_reform_status', NULL, 'default', 'N', '0', 'jwx', '2023-11-22 14:23:36', '', NULL, NULL);
  1216. DELIMITER ??
  1217. DROP PROCEDURE IF EXISTS schema_change ??
  1218. CREATE PROCEDURE schema_change () BEGIN
  1219. -- 出入介绍信 新增有效天数
  1220. IF NOT EXISTS(SELECT *
  1221. FROM information_schema.columns
  1222. WHERE table_schema = DATABASE()
  1223. AND table_name = 'core_introduce_letter'
  1224. AND column_name = 'effective_days') THEN
  1225. ALTER TABLE `core_introduce_letter`
  1226. MODIFY COLUMN `start_time` datetime NULL DEFAULT NULL COMMENT '有效开始时间,开具时间' AFTER `letter_name`,
  1227. ADD COLUMN `effective_days` int NULL COMMENT '有效天数' AFTER `type`;
  1228. END IF;
  1229. -- 出入介绍信 来访人员新增 证件类型
  1230. IF NOT EXISTS(SELECT *
  1231. FROM information_schema.columns
  1232. WHERE table_schema = DATABASE()
  1233. AND table_name = 'core_introduce_letter_user'
  1234. AND column_name = 'id_type') THEN
  1235. ALTER TABLE `core_introduce_letter_user`
  1236. ADD COLUMN `id_type` int NULL COMMENT '证件类型' AFTER `company_name`;
  1237. END IF;
  1238. -- 监控调阅时长
  1239. IF NOT EXISTS(SELECT *
  1240. FROM information_schema.columns
  1241. WHERE table_schema = DATABASE()
  1242. AND table_name = 'core_monitoring_task_registration'
  1243. AND column_name = 'average_duration') THEN
  1244. ALTER TABLE `core_monitoring_task_registration`
  1245. ADD COLUMN `average_duration` double DEFAULT '0' COMMENT '平均调阅时长';
  1246. END IF;
  1247. -- 安全责任书
  1248. IF NOT EXISTS(SELECT *
  1249. FROM information_schema.columns
  1250. WHERE table_schema = DATABASE()
  1251. AND table_name = 'core_safety_book_hsggbsdj'
  1252. AND column_name = 'org_id') THEN
  1253. ALTER TABLE `core_safety_book_hsggbsdj`
  1254. ADD COLUMN `org_id` bigint NULL COMMENT '机构id';
  1255. END IF;
  1256. -- 安全责任书
  1257. IF NOT EXISTS(SELECT *
  1258. FROM information_schema.columns
  1259. WHERE table_schema = DATABASE()
  1260. AND table_name = 'core_safety_book_hsggbsdj'
  1261. AND column_name = 'join_names') THEN
  1262. ALTER TABLE `core_safety_book_hsggbsdj`
  1263. ADD COLUMN `join_names` varchar(255) NULL COMMENT '参与人员';
  1264. END IF;
  1265. -- 安全责任书
  1266. IF NOT EXISTS(SELECT *
  1267. FROM information_schema.columns
  1268. WHERE table_schema = DATABASE()
  1269. AND table_name = 'core_safety_book_aqbwbndjh'
  1270. AND column_name = 'type') THEN
  1271. ALTER TABLE `core_safety_book_aqbwbndjh`
  1272. ADD COLUMN `type` varchar(255) NULL COMMENT '文件种类';
  1273. END IF;
  1274. -- 安全责任书
  1275. IF NOT EXISTS(SELECT *
  1276. FROM information_schema.columns
  1277. WHERE table_schema = DATABASE()
  1278. AND table_name = 'core_safety_book_aqbwbndjh'
  1279. AND column_name = 'year') THEN
  1280. ALTER TABLE `core_safety_book_aqbwbndjh`
  1281. ADD COLUMN `year` int NULL COMMENT '工作年度';
  1282. END IF;
  1283. END ??
  1284. DELIMITER;
  1285. CALL schema_change ();
  1286. UPDATE `sys_menu` SET `menu_name` = '来访管理',`icon`='link' WHERE `menu_name` = '出入管理' AND `parent_id` = 0 AND platform_type=1;
  1287. UPDATE `sys_menu` SET `menu_name` = '来访•核验',`order_num`=2 WHERE `menu_name` = '来访' AND `parent_id` = 0 AND platform_type=0;
  1288. -- 调整移动端菜单分组 开始
  1289. UPDATE `sys_menu` SET `menu_name` = '来访•核验',`order_num`=2 WHERE `menu_name` = '来访' AND `parent_id` = 0 AND platform_type=0;
  1290. DELETE FROM sys_menu WHERE id IN(01726899190588432386,01726899481861873666,01726900357129232386,01722798472651890689);
  1291. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01726899190588432386, '培训•演练', 0, 3, '‘’', NULL, NULL, 1, 0, 'M', '0', '0', NULL, '0', '#', NULL, '超级管理员', '2023-11-21 17:44:07', '', NULL, '');
  1292. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01726899481861873666, '设置•管理', 0, 4, '‘’', NULL, NULL, 1, 0, 'M', '0', '0', NULL, '0', '#', NULL, '超级管理员', '2023-11-21 17:45:17', '', NULL, '');
  1293. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01726900357129232386, '履职•检查', 0, 1, '‘’', NULL, NULL, 1, 0, 'M', '0', '0', NULL, '0','#', NULL, '超级管理员', '2023-11-21 17:48:45', '', NULL, '');
  1294. INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `platform_type`, `icon`, `image_path`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (01722798472651890689, 'app驾驶舱', 1726899481861873666, 1, '/cockpit', '', NULL, 1, 1, 'C', '0', '0', '', '0', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABWCAMAAABiiJHFAAAAMFBMVEVHcEymgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKWmgKUnf6aaAAAAD3RSTlMAQMCAYNAQIKAw8HDgsJCcvx8RAAAACXBIWXMAAAsSAAALEgHS3X78AAABwElEQVRYhe3Y2W6EMAwFUBICYR3//9+OCtMWTXKvTWAeqsbvPkLGztbUqFGjRmmMzsUPFM+LiHRDuNne2I0O/SdYkam9Dz6wX/A1zM3t6n3CinRjKRnnbyrDisxFaDg4WVaGAnQ5Ann2tDu+GYA96c7v6Yg94/Zrkg1Z+3/ruzQZs2Lss5zK2KVcZayY5i2fzNjJsKQ98qmMNXSDA5mUFW056xeQyFmtui1K5KzSDBEmclbp3aGUpVXop1LWMzZZYMysMDY7XzaWFBf/MJ11mA0XWLI84j7QWdIKpLRXWJK1saPDgRcx9sdoA/FAi9cfZPcVtSWBqkvZbnNZZ6OBoKzulrGqC8eXs5oLOxevthYXqXQ4VRdvZ3B/tLgrZEeVJS5ZGbXiMpdsD+CgZHHZScFQBeQ+CKv3AnTpoVEZNOzSc4LxczMu2XjN1U1d3LSv0Eci4xqO42z7PcRezJcbVLWJhpmQn4N9EOuNz1jeX9d4j2Q7yzH2CQjm26nNnZSmytTBUN+p4O0jqv3gy56AlP4tfv+JZI7XKw9sLn1V2GI4/a/ev7hNLpXdfMtTYAyDf/XF4h93Py/WqFHjH0TTNE8qcZLTHufPKAAAAABJRU5ErkJggg==', NULL, '超级管理员', '2023-11-10 10:08:58', '超级管理员', '2023-11-22 17:04:54', '');
  1295. -- 修改改为禁用状态
  1296. DELETE from `sys_menu` WHERE `parent_id` = 0 AND platform_type=0 and `menu_name` in ('管理','设备','履职','培训','演练','驾驶舱App');
  1297. -- 修改移动端菜单目录
  1298. UPDATE sys_menu
  1299. SET parent_id = 01726899481861873666
  1300. WHERE
  1301. parent_id IN ( SELECT * FROM ( SELECT id FROM sys_menu WHERE (`menu_name` = '管理' OR `menu_name` = '设备' OR `menu_name` = '驾驶舱App' ) AND `parent_id` = 0 AND platform_type = 0 ) AS s );
  1302. UPDATE sys_menu
  1303. SET parent_id = 01726899190588432386
  1304. WHERE
  1305. parent_id IN ( SELECT * FROM ( SELECT id FROM sys_menu WHERE (`menu_name` = '培训' OR `menu_name` = '演练' ) AND `parent_id` = 0 AND platform_type = 0 ) AS s );
  1306. UPDATE sys_menu
  1307. SET parent_id = 01726900357129232386
  1308. WHERE
  1309. parent_id IN ( SELECT * FROM ( SELECT id FROM sys_menu WHERE `menu_name` = '履职' AND `parent_id` = 0 AND platform_type = 0 ) AS s );
  1310. -- 在权限表中删除没有菜单的数据
  1311. DELETE from sys_role_menu WHERE menu_id not in (SELECT id from sys_menu);
  1312. -- 调整移动端菜单分组 结束
  1313. -- 更新安全责任书类型
  1314. delete from `sys_dict_data` where dict_type='safety_book_type';
  1315. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '消防安全责任书', '1', 'safety_book_type', NULL, 'default', 'N', '0', '超级管理员', '2023-10-11 14:37:00', '省联社账号', '2023-11-24 09:16:39', NULL);
  1316. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 2, '联防协议书', '2', 'safety_book_type', NULL, 'default', 'N', '0', '超级管理员', '2023-10-11 14:37:07', '省联社账号', '2023-11-24 09:16:58', NULL);
  1317. INSERT INTO `sys_dict_data`( `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 3, '其他', '3', 'safety_book_type', NULL, 'default', 'N', '0', '超级管理员', '2023-10-11 14:37:13', '省联社账号', '2023-11-24 09:17:05', NULL);
  1318. -- 登记簿固化表增加非空约束
  1319. ALTER TABLE core_register_book_pdf
  1320. MODIFY COLUMN `file_name` varchar(225) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件名称' AFTER `org_path`,
  1321. MODIFY COLUMN `file_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件地址' AFTER `file_name`;
  1322. -- 补充未添加的一级菜单权限
  1323. INSERT into sys_role_menu
  1324. SELECT
  1325. a.*
  1326. FROM
  1327. (
  1328. SELECT
  1329. rm.role_id,
  1330. m.parent_id AS menu_id
  1331. FROM
  1332. sys_menu m
  1333. INNER JOIN sys_role_menu rm ON m.id = rm.menu_id
  1334. WHERE
  1335. menu_type = 'C'
  1336. AND m.`status` = 0
  1337. AND m.parent_id > 0
  1338. GROUP BY
  1339. rm.role_id,
  1340. m.parent_id
  1341. ) a where CONCAT(a.role_id,a.menu_id) not in (SELECT CONCAT(role_id,menu_id) from sys_role_menu)
  1342. order by a.role_id ;
  1343. -- 字段长度变更
  1344. ALTER TABLE `core_drill_task`
  1345. MODIFY COLUMN `drill_site` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '演练地点' AFTER `drill_end_time`;