添加:树表演示后台数据库结构,支持mybatis-flex
This commit is contained in:
parent
630881c1d7
commit
c788f88216
@ -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)
|
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, '');
|
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, '');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user