|
|
@@ -409,7 +409,8 @@ ALTER TABLE core_safetycheck_rule MODIFY COLUMN update_time datetime NULL COMME
|
|
|
ALTER TABLE core_safetycheck_rule MODIFY COLUMN create_by varchar(255) CHARACTER SET utf8mb4;
|
|
|
-- 修改演练任务表状态字段释义
|
|
|
alter table core_drill_task modify status int default 0 null comment '任务状态:0:待登记,5:待提交,1:待签名,2待评价,3:已完成,4:已逾期';
|
|
|
-
|
|
|
+alter table core_drill_dictionary modify drill_type varchar(12) null comment '演练项目,字典表关联取值';
|
|
|
+alter table core_drill_dictionary modify drill_type_name varchar(32) null comment '演练项目名称';
|
|
|
|
|
|
DELIMITER ??
|
|
|
DROP PROCEDURE IF EXISTS schema_change ??
|
|
|
@@ -540,6 +541,21 @@ DROP PROCEDURE IF EXISTS schema_change ??
|
|
|
END IF;
|
|
|
|
|
|
|
|
|
+
|
|
|
+ -- 演练范本库表增加演练类型字段
|
|
|
+ IF NOT EXISTS(SELECT *
|
|
|
+ FROM information_schema.columns
|
|
|
+ WHERE table_schema = DATABASE()
|
|
|
+ AND table_name = 'core_drill_dictionary'
|
|
|
+ AND column_name = 'drill_category') THEN
|
|
|
+ alter table core_drill_dictionary
|
|
|
+ add drill_category int null comment '演练类型,字典表取值' after drill_type_name;
|
|
|
+
|
|
|
+ alter table core_drill_dictionary
|
|
|
+ add drill_category_name varchar(125) null comment '演练类型名称' after drill_category;
|
|
|
+ END IF;
|
|
|
+
|
|
|
+
|
|
|
END ??
|
|
|
DELIMITER;
|
|
|
CALL schema_change ();
|
|
|
@@ -645,14 +661,21 @@ insert into sys_role_menu(role_id, menu_id)
|
|
|
select r.id,m.id
|
|
|
from sys_role r ,sys_menu m
|
|
|
where m.menu_name ='演练任务删除' and m.perms='core:drillTask:remove';
|
|
|
-
|
|
|
+-- 修改字典名称
|
|
|
+update sys_dict_type SET dict_name = '预案演练项目' WHERE dict_name = '预案演练类型' and dict_type='core_drill_type' limit 1;
|
|
|
+-- 新增演练类型字典
|
|
|
+delete from sys_dict_type where dict_type='core_drill_category';
|
|
|
+delete from sys_dict_data where dict_type='core_drill_category';
|
|
|
+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);
|
|
|
+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, '季度应急预案', '1', 'core_drill_category', null, 'default', 'N', '0', null, now(), null, now(), null);
|
|
|
+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, '消防应急预案', '2', 'core_drill_category', null, 'default', 'N', '0', null, now(), null, now(), null);
|
|
|
|
|
|
-- 报警控制器
|
|
|
ALTER TABLE `core_protection_log`
|
|
|
MODIFY COLUMN `status_updator_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报人姓名' AFTER `status_updator_id`;
|
|
|
-- 修改安全指数机构分数表机构path字段长度
|
|
|
alter table core_safe_month_score modify org_path varchar(225) null comment '机构path';
|
|
|
-DELETE FROM sys_menu WHERE id IN(01719287834364436482,01719288533101928450,01719892877586239490,01720000571298115585);
|
|
|
+DELETE FROM sys_menu WHERE id IN(01719287834364436482,01719288533101928450,01719892877586239490,01720000571298115585,1722135552494403586);
|
|
|
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 (01719287834364436482, '统计报表', 0, 1, 'reportForms', NULL, NULL, 1, 0, 'M', '0', '0', 'core:send:list', '1', 'chart', NULL, '超级管理员', '2023-09-21 10:37:52', '超级管理员', '2023-09-22 09:42:43', '');
|
|
|
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`)
|