From c788f882168b3beedb0b6e52b2231fd96ebc7993 Mon Sep 17 00:00:00 2001 From: dataprince Date: Thu, 23 Nov 2023 11:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E6=A0=91=E8=A1=A8?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E5=90=8E=E5=8F=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E7=BB=93=E6=9E=84=EF=BC=8C=E6=94=AF=E6=8C=81mybatis-flex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/update.sql | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sql/update.sql b/sql/update.sql index 6b92a50..893f94f 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -617,3 +617,43 @@ values('学生信息表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', ' insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values('学生信息表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'mf:student:export', '#', 1, sysdate(), 1, null, ''); +CREATE TABLE `mf_product` ( + `product_id` BIGINT(19) NOT NULL COMMENT '产品id', + `parent_id` BIGINT(19) NULL DEFAULT '0' COMMENT '父产品id', + `product_name` VARCHAR(30) NULL DEFAULT '' COMMENT '产品名称' COLLATE 'utf8mb4_bin', + `order_num` INT(10) NULL DEFAULT '0' COMMENT '显示顺序', + `status` CHAR(1) NULL DEFAULT '0' COMMENT '产品状态(0正常 1停用)' COLLATE 'utf8mb4_bin', + `create_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '创建者', + `create_time` DATETIME NULL DEFAULT NULL COMMENT '创建时间', + `update_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '更新者', + `update_time` DATETIME NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`product_id`) USING BTREE +) +COMMENT='产品树表' +COLLATE='utf8mb4_bin' +ENGINE=InnoDB +; + +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表', '2018', '1', 'product', 'mf/product/index', 1, 0, 'C', '0', '0', 'mf:product:list', '#', 1, sysdate(), 1, null, '产品树菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'mf:product:query', '#', 1, sysdate(), 1, null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'mf:product:add', '#', 1, sysdate(), 1, null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'mf:product:edit', '#', 1, sysdate(), 1, null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'mf:product:remove', '#', 1, sysdate(), 1, null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'mf:product:export', '#', 1, sysdate(), 1, null, ''); +