|  | @@ -1129,19 +1129,19 @@ END IF;
 | 
	
		
			
				|  |  |  			CHANGE COLUMN `plan_id` `parent_plan_id` bigint NULL DEFAULT NULL COMMENT '父计划id,没有就与plan_id一致' AFTER `ymd_minute`,
 | 
	
		
			
				|  |  |  			ADD COLUMN `plan_id` bigint NULL COMMENT '生成任务的计划id' AFTER `parent_plan_id`;
 | 
	
		
			
				|  |  |      END IF;
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	-- 履职库内容表增加NFC点位
 | 
	
		
			
				|  |  |      IF
 | 
	
		
			
				|  |  |          NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption_rule_point' AND COLUMN_NAME = 'check_id' ) THEN
 | 
	
		
			
				|  |  | -        ALTER TABLE `core_resumption_rule_point` 
 | 
	
		
			
				|  |  | +        ALTER TABLE `core_resumption_rule_point`
 | 
	
		
			
				|  |  |  			MODIFY COLUMN `area_id` bigint NULL COMMENT '履职区域,区域表id' AFTER `name`,
 | 
	
		
			
				|  |  |  			ADD COLUMN `check_id` bigint NULL COMMENT 'NFC点位id' AFTER `area_id`;
 | 
	
		
			
				|  |  |      END IF;
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	-- 履职登记内容表增加NFC点位
 | 
	
		
			
				|  |  |      IF
 | 
	
		
			
				|  |  |          NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption_data' AND COLUMN_NAME = 'check_id' ) THEN
 | 
	
		
			
				|  |  | -        ALTER TABLE `core_resumption_data` 
 | 
	
		
			
				|  |  | +        ALTER TABLE `core_resumption_data`
 | 
	
		
			
				|  |  |  			ADD COLUMN `check_id` bigint NULL COMMENT '点位id' AFTER `area_id`;
 | 
	
		
			
				|  |  |      END IF;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1157,6 +1157,17 @@ END IF;
 | 
	
		
			
				|  |  |          alter table core_drill_task
 | 
	
		
			
				|  |  |              add drill_end_time datetime(6) null comment '演练结束时间' after drill_start_time;
 | 
	
		
			
				|  |  |      END IF;
 | 
	
		
			
				|  |  | +	-- 履职数据增加两个字段,是否必查,是否扫描NFC
 | 
	
		
			
				|  |  | +    IF
 | 
	
		
			
				|  |  | +        NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption_data' AND COLUMN_NAME = 'point_scan' ) THEN
 | 
	
		
			
				|  |  | +        ALTER TABLE `core_resumption_data`
 | 
	
		
			
				|  |  | +			ADD COLUMN `point_scan` tinyint(1) NULL DEFAULT NULL COMMENT '是否扫描NFC 1扫描,0不扫描' AFTER `data_status`;
 | 
	
		
			
				|  |  | +    END IF;
 | 
	
		
			
				|  |  | +       IF
 | 
	
		
			
				|  |  | +        NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE () and TABLE_NAME = 'core_resumption_data' AND COLUMN_NAME = 'required' ) THEN
 | 
	
		
			
				|  |  | +        ALTER TABLE `core_resumption_data`
 | 
	
		
			
				|  |  | +			ADD COLUMN `required` tinyint(0) NULL DEFAULT 1 COMMENT '是否必须检查 1必检查,0非必捡' AFTER `data_status`;
 | 
	
		
			
				|  |  | +    END IF;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  ALTER TABLE `core_protection` MODIFY COLUMN `device_id` BIGINT NULL DEFAULT NULL COMMENT '设备ID' AFTER `id`;
 | 
	
	
		
			
				|  | @@ -2076,6 +2087,14 @@ insert into sys_role_menu select  id,1714187748136493058 from sys_role where rol
 | 
	
		
			
				|  |  |  insert into sys_role_menu select  id,1714187851295399937 from sys_role where role_name like '%省联社安全保卫管理人员%';
 | 
	
		
			
				|  |  |  insert into sys_role_menu select  id,1714188002965626881 from sys_role where role_name like '%省联社安全保卫管理人员%';
 | 
	
		
			
				|  |  |  insert into sys_role_menu select  id,1714188131026116609 from sys_role where role_name like '%省联社安全保卫管理人员%';
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +delete from sys_dict_type where dict_type='materials_status';
 | 
	
		
			
				|  |  | +delete from sys_dict_data where dict_type='materials_status';
 | 
	
		
			
				|  |  | +INSERT INTO sys_dict_type ( dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES ('知识库状态', 'materials_status', '0', null, now(), '', null, 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 ( 0, '草稿', '0', 'materials_status', null, 'default', 'N', '0', null, now(), '', null, 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 ( 1, '使用中', '1', 'materials_status', null, 'default', 'N', '0', null, now(), '', null, 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 ( 2, '停用', '2', 'materials_status', null, 'default', 'N', '0', null, now(), '', null, null);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  -- -------------------------------------------------------
 | 
	
		
			
				|  |  |  -- ----------新增数据 end  ----------------------------
 | 
	
		
			
				|  |  |  -- -------------------------------------------------------
 | 
	
	
		
			
				|  | @@ -2180,7 +2199,6 @@ update sys_menu set menu_name ='教育培训计划下发' where menu_name='下
 | 
	
		
			
				|  |  |  delete from sys_role_menu where role_id in (select id from sys_role  where org_type=4) and menu_id in (select id from sys_menu m where menu_name like '%培训计划%');
 | 
	
		
			
				|  |  |  delete from sys_role_menu where role_id in (select id from sys_role  where org_type=4) and menu_id in (select id from sys_menu m where menu_name like '%演练计划%');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  -- -------------------------------------------------------
 | 
	
		
			
				|  |  |  -- ----------更新数据 end  ----------------------------
 | 
	
		
			
				|  |  |  -- -------------------------------------------------------
 |