24 lines
1.5 KiB
Transact-SQL
24 lines
1.5 KiB
Transact-SQL
use ZrAdmin;
|
|
|
|
-- 系统公告菜单
|
|
INSERT INTO sys_menu(menuName, parentId, orderNum, path, component, isFrame, isCache, menuType, visible, status, perms, icon, create_by, create_time)
|
|
VALUES ('系统公告', 1233, 999, 'tsystemnotifications', 'liveforum/tsystemnotifications', 0, 0, 'C', '0', '0', 'tsystemnotifications:list', 'icon1', 'system', GETDATE());
|
|
|
|
-- 按钮父菜单id
|
|
declare @menuId int = @@identity
|
|
|
|
|
|
INSERT INTO sys_menu(menuName, parentId, orderNum, path, component, isFrame, isCache, menuType, visible, status, perms, icon, create_by,create_time)
|
|
VALUES ('查询', @menuId, 1, '#', NULL, 0, 0, 'F', '0', '0', 'tsystemnotifications:query', '', 'system', GETDATE());
|
|
|
|
INSERT INTO sys_menu(menuName, parentId, orderNum, path, component, isFrame, isCache, menuType, visible, status, perms, icon, create_by,create_time)
|
|
VALUES ('新增', @menuId, 2, '#', NULL, 0, 0, 'F', '0', '0', 'tsystemnotifications:add', '', 'system', GETDATE());
|
|
|
|
INSERT INTO sys_menu(menuName, parentId, orderNum, path, component, isFrame, isCache, menuType, visible, status, perms, icon, create_by,create_time)
|
|
VALUES ('删除', @menuId, 3, '#', NULL, 0, 0, 'F', '0', '0', 'tsystemnotifications:delete', '', 'system', GETDATE());
|
|
|
|
INSERT INTO sys_menu(menuName, parentId, orderNum, path, component, isFrame, isCache, menuType, visible, status, perms, icon, create_by,create_time)
|
|
VALUES ('修改', @menuId, 4, '#', NULL, 0, 0, 'F', '0', '0', 'tsystemnotifications:edit', '', 'system', GETDATE());
|
|
|
|
SELECT * FROM sys_menu WHERE parentId = @menuId;
|
|
SELECT * FROM sys_menu WHERE menuId = @menuId; |