From 56a640a5c69745b6bde067ae7f328c3c01499233 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 25 四月 2024 00:14:36 +0800 Subject: [PATCH] update 修改 admin 所属岗位的默认值 避免回显问题 --- script/sql/ry_vue_5.X.sql | 56 +++++++++++++++++--------------------------------------- 1 files changed, 17 insertions(+), 39 deletions(-) diff --git a/script/sql/ry_vue_5.X.sql b/script/sql/ry_vue_5.X.sql index 19d7242..618b6c7 100644 --- a/script/sql/ry_vue_5.X.sql +++ b/script/sql/ry_vue_5.X.sql @@ -1,7 +1,6 @@ -- ---------------------------- -- 绗笁鏂瑰钩鍙版巿鏉冭〃 -- ---------------------------- -drop table if exists sys_social; create table sys_social ( id bigint not null comment '涓婚敭', @@ -40,7 +39,6 @@ -- ---------------------------- -- 绉熸埛琛� -- ---------------------------- -drop table if exists sys_tenant; create table sys_tenant ( id bigint(20) not null comment 'id', @@ -77,7 +75,6 @@ -- ---------------------------- -- 绉熸埛濂楅琛� -- ---------------------------- -drop table if exists sys_tenant_package; create table sys_tenant_package ( package_id bigint(20) not null comment '绉熸埛濂楅id', package_name varchar(20) comment '濂楅鍚嶇О', @@ -98,13 +95,13 @@ -- ---------------------------- -- 1銆侀儴闂ㄨ〃 -- ---------------------------- -drop table if exists sys_dept; create table sys_dept ( dept_id bigint(20) not null comment '閮ㄩ棬id', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', parent_id bigint(20) default 0 comment '鐖堕儴闂╥d', ancestors varchar(500) default '' comment '绁栫骇鍒楄〃', dept_name varchar(30) default '' comment '閮ㄩ棬鍚嶇О', + dept_category varchar(100) default null comment '閮ㄩ棬绫诲埆缂栫爜', order_num int(4) default 0 comment '鏄剧ず椤哄簭', leader bigint(20) default null comment '璐熻矗浜�', phone varchar(11) default null comment '鑱旂郴鐢佃瘽', @@ -124,22 +121,21 @@ -- ---------------------------- -insert into sys_dept values(100, '000000', 0, '0', 'XXX绉戞妧', 0, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(101, '000000', 100, '0,100', '娣卞湷鎬诲叕鍙�', 1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(102, '000000', 100, '0,100', '闀挎矙鍒嗗叕鍙�', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(103, '000000', 101, '0,100,101', '鐮斿彂閮ㄩ棬', 1, 1, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(104, '000000', 101, '0,100,101', '甯傚満閮ㄩ棬', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(105, '000000', 101, '0,100,101', '娴嬭瘯閮ㄩ棬', 3, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(106, '000000', 101, '0,100,101', '璐㈠姟閮ㄩ棬', 4, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(107, '000000', 101, '0,100,101', '杩愮淮閮ㄩ棬', 5, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(108, '000000', 102, '0,100,102', '甯傚満閮ㄩ棬', 1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -insert into sys_dept values(109, '000000', 102, '0,100,102', '璐㈠姟閮ㄩ棬', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(100, '000000', 0, '0', 'XXX绉戞妧', null,0, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(101, '000000', 100, '0,100', '娣卞湷鎬诲叕鍙�', null,1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(102, '000000', 100, '0,100', '闀挎矙鍒嗗叕鍙�', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(103, '000000', 101, '0,100,101', '鐮斿彂閮ㄩ棬', null,1, 1, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(104, '000000', 101, '0,100,101', '甯傚満閮ㄩ棬', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(105, '000000', 101, '0,100,101', '娴嬭瘯閮ㄩ棬', null,3, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(106, '000000', 101, '0,100,101', '璐㈠姟閮ㄩ棬', null,4, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(107, '000000', 101, '0,100,101', '杩愮淮閮ㄩ棬', null,5, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(108, '000000', 102, '0,100,102', '甯傚満閮ㄩ棬', null,1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); +insert into sys_dept values(109, '000000', 102, '0,100,102', '璐㈠姟閮ㄩ棬', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, sysdate(), null, null); -- ---------------------------- -- 2銆佺敤鎴蜂俊鎭〃 -- ---------------------------- -drop table if exists sys_user; create table sys_user ( user_id bigint(20) not null comment '鐢ㄦ埛ID', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -175,12 +171,13 @@ -- ---------------------------- -- 3銆佸矖浣嶄俊鎭〃 -- ---------------------------- -drop table if exists sys_post; create table sys_post ( post_id bigint(20) not null comment '宀椾綅ID', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', + dept_id bigint(20) not null comment '閮ㄩ棬id', post_code varchar(64) not null comment '宀椾綅缂栫爜', + post_category varchar(100) default null comment '宀椾綅绫诲埆缂栫爜', post_name varchar(50) not null comment '宀椾綅鍚嶇О', post_sort int(4) not null comment '鏄剧ず椤哄簭', status char(1) not null comment '鐘舵�侊紙0姝e父 1鍋滅敤锛�', @@ -196,16 +193,15 @@ -- ---------------------------- -- 鍒濆鍖�-宀椾綅淇℃伅琛ㄦ暟鎹� -- ---------------------------- -insert into sys_post values(1, '000000', 'ceo', '钁d簨闀�', 1, '0', 103, 1, sysdate(), null, null, ''); -insert into sys_post values(2, '000000', 'se', '椤圭洰缁忕悊', 2, '0', 103, 1, sysdate(), null, null, ''); -insert into sys_post values(3, '000000', 'hr', '浜哄姏璧勬簮', 3, '0', 103, 1, sysdate(), null, null, ''); -insert into sys_post values(4, '000000', 'user', '鏅�氬憳宸�', 4, '0', 103, 1, sysdate(), null, null, ''); +insert into sys_post values(1, '000000', 103, 'ceo', null, '钁d簨闀�', 1, '0', 103, 1, sysdate(), null, null, ''); +insert into sys_post values(2, '000000', 100, 'se', null, '椤圭洰缁忕悊', 2, '0', 103, 1, sysdate(), null, null, ''); +insert into sys_post values(3, '000000', 100, 'hr', null, '浜哄姏璧勬簮', 3, '0', 103, 1, sysdate(), null, null, ''); +insert into sys_post values(4, '000000', 100, 'user', null, '鏅�氬憳宸�', 4, '0', 103, 1, sysdate(), null, null, ''); -- ---------------------------- -- 4銆佽鑹蹭俊鎭〃 -- ---------------------------- -drop table if exists sys_role; create table sys_role ( role_id bigint(20) not null comment '瑙掕壊ID', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -236,7 +232,6 @@ -- ---------------------------- -- 5銆佽彍鍗曟潈闄愯〃 -- ---------------------------- -drop table if exists sys_menu; create table sys_menu ( menu_id bigint(20) not null comment '鑿滃崟ID', menu_name varchar(50) not null comment '鑿滃崟鍚嶇О', @@ -413,7 +408,6 @@ -- ---------------------------- -- 6銆佺敤鎴峰拰瑙掕壊鍏宠仈琛� 鐢ㄦ埛N-1瑙掕壊 -- ---------------------------- -drop table if exists sys_user_role; create table sys_user_role ( user_id bigint(20) not null comment '鐢ㄦ埛ID', role_id bigint(20) not null comment '瑙掕壊ID', @@ -430,7 +424,6 @@ -- ---------------------------- -- 7銆佽鑹插拰鑿滃崟鍏宠仈琛� 瑙掕壊1-N鑿滃崟 -- ---------------------------- -drop table if exists sys_role_menu; create table sys_role_menu ( role_id bigint(20) not null comment '瑙掕壊ID', menu_id bigint(20) not null comment '鑿滃崟ID', @@ -527,7 +520,6 @@ -- ---------------------------- -- 8銆佽鑹插拰閮ㄩ棬鍏宠仈琛� 瑙掕壊1-N閮ㄩ棬 -- ---------------------------- -drop table if exists sys_role_dept; create table sys_role_dept ( role_id bigint(20) not null comment '瑙掕壊ID', dept_id bigint(20) not null comment '閮ㄩ棬ID', @@ -537,7 +529,6 @@ -- ---------------------------- -- 9銆佺敤鎴蜂笌宀椾綅鍏宠仈琛� 鐢ㄦ埛1-N宀椾綅 -- ---------------------------- -drop table if exists sys_user_post; create table sys_user_post ( user_id bigint(20) not null comment '鐢ㄦ埛ID', @@ -553,7 +544,6 @@ -- ---------------------------- -- 10銆佹搷浣滄棩蹇楄褰� -- ---------------------------- -drop table if exists sys_oper_log; create table sys_oper_log ( oper_id bigint(20) not null comment '鏃ュ織涓婚敭', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -583,7 +573,6 @@ -- ---------------------------- -- 11銆佸瓧鍏哥被鍨嬭〃 -- ---------------------------- -drop table if exists sys_dict_type; create table sys_dict_type ( dict_id bigint(20) not null comment '瀛楀吀涓婚敭', @@ -615,7 +604,6 @@ -- ---------------------------- -- 12銆佸瓧鍏告暟鎹〃 -- ---------------------------- -drop table if exists sys_dict_data; create table sys_dict_data ( dict_code bigint(20) not null comment '瀛楀吀缂栫爜', @@ -675,7 +663,6 @@ -- ---------------------------- -- 13銆佸弬鏁伴厤缃〃 -- ---------------------------- -drop table if exists sys_config; create table sys_config ( config_id bigint(20) not null comment '鍙傛暟涓婚敭', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -702,7 +689,6 @@ -- ---------------------------- -- 14銆佺郴缁熻闂褰� -- ---------------------------- -drop table if exists sys_logininfor; create table sys_logininfor ( info_id bigint(20) not null comment '璁块棶ID', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -725,7 +711,6 @@ -- ---------------------------- -- 17銆侀�氱煡鍏憡琛� -- ---------------------------- -drop table if exists sys_notice; create table sys_notice ( notice_id bigint(20) not null comment '鍏憡ID', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -752,7 +737,6 @@ -- ---------------------------- -- 18銆佷唬鐮佺敓鎴愪笟鍔¤〃 -- ---------------------------- -drop table if exists gen_table; create table gen_table ( table_id bigint(20) not null comment '缂栧彿', data_name varchar(200) default '' comment '鏁版嵁婧愬悕绉�', @@ -783,7 +767,6 @@ -- ---------------------------- -- 19銆佷唬鐮佺敓鎴愪笟鍔¤〃瀛楁 -- ---------------------------- -drop table if exists gen_table_column; create table gen_table_column ( column_id bigint(20) not null comment '缂栧彿', table_id bigint(20) comment '褰掑睘琛ㄧ紪鍙�', @@ -814,7 +797,6 @@ -- ---------------------------- -- OSS瀵硅薄瀛樺偍琛� -- ---------------------------- -drop table if exists sys_oss; create table sys_oss ( oss_id bigint(20) not null comment '瀵硅薄瀛樺偍涓婚敭', tenant_id varchar(20) default '000000' comment '绉熸埛缂栧彿', @@ -834,7 +816,6 @@ -- ---------------------------- -- OSS瀵硅薄瀛樺偍鍔ㄦ�侀厤缃〃 -- ---------------------------- -drop table if exists sys_oss_config; create table sys_oss_config ( oss_config_id bigint(20) not null comment '涓诲缓', tenant_id varchar(20) default '000000'comment '绉熸埛缂栧彿', @@ -868,7 +849,6 @@ -- ---------------------------- -- 绯荤粺鎺堟潈琛� -- ---------------------------- -drop table if exists sys_client; create table sys_client ( id bigint(20) not null comment 'id', client_id varchar(64) default null comment '瀹㈡埛绔痠d', @@ -892,7 +872,6 @@ insert into sys_client values (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, 0, 0, 103, 1, sysdate(), 1, sysdate()); -DROP TABLE if EXISTS test_demo; CREATE TABLE test_demo ( id bigint(0) NOT NULL COMMENT '涓婚敭', @@ -912,7 +891,6 @@ PRIMARY KEY (id) USING BTREE ) ENGINE = InnoDB COMMENT = '娴嬭瘯鍗曡〃'; -DROP TABLE if EXISTS test_tree; CREATE TABLE test_tree ( id bigint(0) NOT NULL COMMENT '涓婚敭', -- Gitblit v1.9.3