浏览代码

Merge branch 'V0.0.8' of http://10.87.21.221:8000/jzyd_yyds/soc into V0.0.8

zhulu 1 年之前
父节点
当前提交
79143d16e1
共有 1 个文件被更改,包括 36 次插入4 次删除
  1. 36 4
      project_data/sql/0.0.8/soc/soc.sql

+ 36 - 4
project_data/sql/0.0.8/soc/soc.sql

@@ -220,16 +220,48 @@ DELETE from `sys_dict_type` where dict_type = 'sys_version_type';
 INSERT INTO `sys_dict_type`(`dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( '升级包平台类型', 'sys_version_type', '0', '超级管理员', '2024-04-17 09:26:55', '', NULL, NULL);
 
 DELETE from `sys_dict_data` where dict_type = 'sys_version_type';
-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', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:27:51', '', NULL, NULL);
-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, 'PC', '1', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:06', '', NULL, NULL);
-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', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:23', '', NULL, NULL);
-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 (3, 'IOS', '3', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:33', '', 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', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:27:51', '', 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, 'PC', '1', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:06', '', 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', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:23', '', 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 (3, 'IOS', '3', 'sys_version_type', NULL, 'default', 'N', '0', '超级管理员', '2024-04-17 09:28:33', '', NULL, NULL);
 
 -- 网点作息配置
 DELETE from `sys_menu` where id in(01780503915975847938);
 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 (01780503915975847938, '网点作息配置', 1, 11, 'work-time-banking-office', 'system/workTimeBankingOffice', NULL, 1, 0, 'C', '0', '0', 'system:time:list', '1', 'time', NULL, '超级管理员', '2024-04-17 15:50:55', '超级管理员', '2024-04-17 15:52:47', '');
 -- 修改系统参数表 参数值字段长度
 alter table sys_config modify config_value longtext default null null comment '参数键值';
+-- 登记簿类型字典值丢失 补充
+delete from sys_dict_data  where dict_type='register_book_type' and dict_label='离行式自助银行巡检登记簿';
+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', 'register_book_type', null, 'default', 'N', '0', '超级管理员', '2024-02-23 14:39:09', '超级管理员', '2024-02-23 14:39:18', null);
+
+-- sys_org_extend 添加 cash_adding_room_control_count 和 remote_control_count 字段
+DELIMITER ??
+DROP PROCEDURE IF EXISTS schema_change ??
+CREATE PROCEDURE schema_change () BEGIN
+
+
+	IF NOT EXISTS(SELECT *
+                  FROM information_schema.columns
+                  WHERE table_schema = DATABASE()
+                    AND table_name = 'sys_org_extend'
+                    AND column_name = 'cash_adding_room_control_count') THEN
+ALTER TABLE `sys_org_extend`
+    ADD COLUMN `cash_adding_room_control_count` int DEFAULT NULL COMMENT '可远程控制和实时授权出入口数量(离行式)' AFTER `total_camera_count`;
+END IF;
+
+    IF NOT EXISTS(SELECT *
+                  FROM information_schema.columns
+                  WHERE table_schema = DATABASE()
+                    AND table_name = 'sys_org_extend'
+                    AND column_name = 'remote_control_count') THEN
+ALTER TABLE `sys_org_extend`
+    ADD COLUMN `remote_control_count` int DEFAULT NULL COMMENT '可远程控制和实时授权出入口数量(业务库)' AFTER `cash_adding_room_control_count`;
+END IF;
+
+
+END ??
+DELIMITER ;
+CALL schema_change ();
 
 
 -- 温湿度告警规则字段对应表 单位错位 刷新