|
|
|
|
|
|
|
-- 创建资产档案表
|
|
|
|
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 '业务实体名称',
|
|
|
|
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门id',
|
|
|
|
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
|
|
|
|
`asset_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资产编号',
|
|
|
|
`asset_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资产名称',
|
|
|
|
`asset_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资产描述',
|
|
|
|
`asset_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资产类型',
|
|
|
|
`purchase_date` datetime NULL DEFAULT NULL COMMENT '购买日期',
|
|
|
|
`disposal_date` datetime NULL DEFAULT NULL COMMENT '报废日期',
|
|
|
|
`asset_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资产状态',
|
|
|
|
`purchase_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '资产价格',
|
|
|
|
`asset_quantity` int(20) NULL DEFAULT NULL COMMENT '资产数量',
|
|
|
|
`purchase_channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购买渠道',
|
|
|
|
`source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件来源',
|
|
|
|
`year` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '年度',
|
|
|
|
`period` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '月份',
|
|
|
|
`borrow_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅状态',
|
|
|
|
`position` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '纸档位置',
|
|
|
|
`cherks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '完整性',
|
|
|
|
`record_id` bigint(20) NULL DEFAULT NULL COMMENT '归档id',
|
|
|
|
`file_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '归档状态',
|
|
|
|
`tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '住户编号',
|
|
|
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
`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`) USING BTREE
|
|
|
|
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资产档案表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
-- 新增 电子档案,资产档案页面 以及资产档案新增修改删除导出权限
|
|
|
|
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');
|