码迷,mamicode.com
首页 > 其他好文 > 详细

二)手动添加基础数据

时间:2016-08-06 08:14:29      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:

基础数据:

insert into smse_user (ID, NAME, USERNAME, PASSWORD, MOBILE, EMAIL)
values (21943DC037B243EDE053433210AC4939, 大木桶, root, root123, 13478772431, 1007951312@qq.com);

insert into smse_role (ID, NAME, ROLE)
values (21943DC037B343EDE053433210AC4939, 系统管理员, root);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21943DC037B443EDE053433210AC4939, 系统管理, ‘‘, ‘‘, 1, ‘‘, 9999);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21943DC037B643EDE053433210AC4939, 菜单管理, system!initMenu.html, ‘‘, 1, 21943DC037B443EDE053433210AC4939, 3);

insert into smse_user_role_link (USER_ID, ROLE_ID)
values (21943DC037B243EDE053433210AC4939, 21943DC037B343EDE053433210AC4939);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21943DC037B443EDE053433210AC4939);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21943DC037B643EDE053433210AC4939);

 

删除sql:

DELETE FROM smse_user;
DELETE FROM smse_role;
DELETE FROM smse_menu;
DELETE FROM smse_user_role_link;
DELETE FROM smse_role_menu_link;
DELETE FROM smse_access_permission;

 

系统管理数据:

insert into smse_user (ID, NAME, USERNAME, PASSWORD, MOBILE, EMAIL)
values (21943DC037B243EDE053433210AC4939, 大木桶, root, root123, 13478772431, 1007951312@qq.com);

insert into smse_role (ID, NAME, ROLE)
values (21943DC037B343EDE053433210AC4939, 系统管理员, root);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21943DC037B443EDE053433210AC4939, 系统管理, ‘‘, ‘‘, 1, ‘‘, 9999);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21943DC037B643EDE053433210AC4939, 菜单管理, system!initMenu.html, ‘‘, 1, 21943DC037B443EDE053433210AC4939, 3);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFE974AA1E053433210AC638C, 用户新增, system!initUserAdd.html, ‘‘, 1, 21FAD71BFE954AA1E053433210AC638C, 1);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFE9A4AA1E053433210AC638C, 用户列表, system!initUserList.html, ‘‘, 1, 21FAD71BFE954AA1E053433210AC638C, 2);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFE954AA1E053433210AC638C, 用户管理, #, ‘‘, 1, 21943DC037B443EDE053433210AC4939, 1);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFE964AA1E053433210AC638C, 角色管理, #, ‘‘, 1, 21943DC037B443EDE053433210AC4939, 2);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFEA14AA1E053433210AC638C, 角色新增, system!initRoleAdd.html, ‘‘, 1, 21FAD71BFE964AA1E053433210AC638C, 1);

insert into smse_menu (ID, NAME, URL, ICON, SHOW, PID, SORT)
values (21FAD71BFEA44AA1E053433210AC638C, 角色列表, system!initRoleList.html, ‘‘, 1, 21FAD71BFE964AA1E053433210AC638C, 2);

insert into smse_user_role_link (USER_ID, ROLE_ID)
values (21943DC037B243EDE053433210AC4939, 21943DC037B343EDE053433210AC4939);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFE964AA1E053433210AC638C);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21943DC037B443EDE053433210AC4939);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFE974AA1E053433210AC638C);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21943DC037B643EDE053433210AC4939);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFE954AA1E053433210AC638C);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFEA14AA1E053433210AC638C);

insert into smse_role_menu_link (ROLE_ID, MENU_ID)
values (21943DC037B343EDE053433210AC4939, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE9B4AA1E053433210AC638C, 用户列表初始化, system!initUserList.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21943DC037B743EDE053433210AC4939, 菜单管理, system!initMenu.html, 21943DC037B643EDE053433210AC4939);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE984AA1E053433210AC638C, 用户新增页面初始化, system!initUserAdd.html, 21FAD71BFE974AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE994AA1E053433210AC638C, 用户新增数据保存, system!saveUserAdd.html, 21FAD71BFE974AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE9C4AA1E053433210AC638C, 异步加载列表数据, system!getUserList.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE9D4AA1E053433210AC638C, 用户明细页面初始化, system!initUserDetail.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE9E4AA1E053433210AC638C, 用户编辑页面初始化, system!initUserEdit.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFE9F4AA1E053433210AC638C, 用户删除, system!deleteUser.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA04AA1E053433210AC638C, 用户编辑页面数据保存, system!saveUserEdit.html, 21FAD71BFE9A4AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA24AA1E053433210AC638C, 角色新增页面初始化, system!initRoleAdd.html, 21FAD71BFEA14AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA34AA1E053433210AC638C, 角色新增页面数据保存, system!saveRoleAdd.html, 21FAD71BFEA14AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA54AA1E053433210AC638C, 角色列表页面初始化, system!initRoleList.html, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA64AA1E053433210AC638C, 异步加载角色列表数据, system!getRoleList.html, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA74AA1E053433210AC638C, 角色明细页面初始化, system!initRoleDetail.html, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA84AA1E053433210AC638C, 角色编辑页面初始化, system!initRoleEdit.html, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEA94AA1E053433210AC638C, 角色编辑页面数据保存, system!saveRoleEdit.html, 21FAD71BFEA44AA1E053433210AC638C);

insert into smse_access_permission (ID, NAME, URL, MENU_ID)
values (21FAD71BFEAA4AA1E053433210AC638C, 角色删除, system!deleteRole.html, 21FAD71BFEA44AA1E053433210AC638C);

 

二)手动添加基础数据

标签:

原文地址:http://www.cnblogs.com/zno2/p/4861580.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!