From d9b88ea8d7fb850b30119d99961804b082646250 Mon Sep 17 00:00:00 2001 From: "LAPTOP-0SF788NU\\admin" <3306174053@qq.com> Date: Wed, 13 Sep 2023 10:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=AD=90=E6=A1=A3=E6=A1=88-=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E6=A1=A3=E6=A1=88-sql=E6=9D=83=E9=99=90=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/ea_electronic20230911JS.sql | 79 ++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 36 deletions(-) diff --git a/sql/ea_electronic20230911JS.sql b/sql/ea_electronic20230911JS.sql index d9713f2d..1a02c534 100644 --- a/sql/ea_electronic20230911JS.sql +++ b/sql/ea_electronic20230911JS.sql @@ -1,40 +1,47 @@ -- 创建资产档案表 -CREATE TABLE `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`) CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资产档案表' ; +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` (`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');