|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
|
|
-- 创建资产档案表
|
|
|
|
|
CREATE TABLE `ea_electronic_assets` (
|
|
|
|
|
CREATE TABLE `lyr-one`.`ea_electronic_assets` (
|
|
|
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '资产档案id',
|
|
|
|
|
`company_id` bigint(20) NULL DEFAULT NULL COMMENT '业务实体id',
|
|
|
|
|
`company` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务实体名称',
|
|
|
|
@ -29,12 +29,19 @@ CREATE TABLE `ea_electronic_assets` (
|
|
|
|
|
`update_time` datetime NULL DEFAULT NULL COMMENT '修改日期',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '制单人',
|
|
|
|
|
`deleted` tinyint(1) NULL DEFAULT NULL COMMENT '逻辑删除',
|
|
|
|
|
PRIMARY KEY (`id`) CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资产档案表' ;
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资产档案表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- 新增 电子档案,资产档案页面 以及资产档案新增修改删除导出权限
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2350, '电子档案', '', 1, 0, 0, '/ea', 'documentation', NULL, NULL, 0, b'1', b'1', b'1', '1', '2023-09-11 11:20:40', '1', '2023-09-11 11:27:13', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2351, '资产档案', 'ea:electronicAssets:list', 2, 1, 2350, 'electronicAssets', 'build', 'ea/electronicAssets/index', 'electronicAssets', 0, b'1', b'1', b'1', '1', '2023-09-11 11:26:16', '1', '2023-09-11 11:27:25', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2352, '新增资产档案', 'ea:electronic:create', 3, 1, 2351, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:23:14', '', '2023-09-11 13:23:14', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2353, '资产档案导出', 'ea:electronic:export', 3, 4, 2351, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:36:31', '', '2023-09-11 13:37:08', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2354, '资产档案修改', 'ea:electronic:update', 3, 2, 2351, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:37:03', '', '2023-09-11 13:37:03', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2355, '资产档案删除', 'ea:electronic:delete', 3, 3, 2351, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:37:30', '', '2023-09-11 13:37:30', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` ( `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( '电子档案', '', 1, 0, 0, '/ea', 'documentation', NULL, NULL, 0, b'1', b'1', b'1', '1', '2023-09-11 11:20:40', '1', '2023-09-11 11:27:13', b'0');
|
|
|
|
|
|
|
|
|
|
SET @menuId = LAST_INSERT_ID();
|
|
|
|
|
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( '资产档案', 'ea:electronicAssets:list', 2, 1, @menuId, 'electronicAssets', 'build', 'ea/electronicAssets/index', 'electronicAssets', 0, b'1', b'1', b'1', '1', '2023-09-11 11:26:16', '1', '2023-09-11 11:27:25', b'0');
|
|
|
|
|
|
|
|
|
|
SET @menuId2 = LAST_INSERT_ID();
|
|
|
|
|
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2352, '新增资产档案', 'ea:electronic:create', 3, 1, @menuId2, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:23:14', '', '2023-09-11 13:23:14', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2353, '资产档案导出', 'ea:electronic:export', 3, 4, @menuId2, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:36:31', '', '2023-09-11 13:37:08', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2354, '资产档案修改', 'ea:electronic:update', 3, 2, @menuId2, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:37:03', '', '2023-09-11 13:37:03', b'0');
|
|
|
|
|
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2355, '资产档案删除', 'ea:electronic:delete', 3, 3, @menuId2, '', '', '', '', 0, b'1', b'1', b'1', '', '2023-09-11 13:37:30', '', '2023-09-11 13:37:30', b'0');
|
|
|
|
|