From f34c1434991635d83894c159a5c98679a56c53dd Mon Sep 17 00:00:00 2001 From: dataprince Date: Wed, 22 Nov 2023 22:23:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=8D=95=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 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sql/update.sql b/sql/update.sql index 2402214..6b92a50 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -575,4 +575,45 @@ insert into sys_dict_data values(32, 3, '邮件认证', 'email', 'sys_gran insert into sys_dict_data values(33, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '小程序认证'); insert into sys_dict_data values(34, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '三方登录认证'); +CREATE TABLE `mf_student` ( + `student_id` BIGINT(19) NOT NULL COMMENT '编号', + `student_name` VARCHAR(30) NULL DEFAULT '' COMMENT '学生名称' COLLATE 'utf8mb4_bin', + `student_age` INT(10) NULL DEFAULT NULL COMMENT '年龄', + `student_hobby` VARCHAR(30) NULL DEFAULT '' COMMENT '爱好(0代码 1音乐 2电影)' COLLATE 'utf8mb4_bin', + `student_gender` CHAR(1) NULL DEFAULT '1' COMMENT '性别(1男 2女 3未知)' COLLATE 'utf8mb4_bin', + `student_status` CHAR(1) NULL DEFAULT '0' COMMENT '状态(0正常 1停用)' COLLATE 'utf8mb4_bin', + `student_birthday` DATETIME NULL DEFAULT NULL COMMENT '生日', + `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 (`student_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', 'student', 'mf/student/index', 1, 0, 'C', '0', '0', 'mf:student: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:student: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:student: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:student: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:student: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:student:export', '#', 1, sysdate(), 1, null, '');