From 1ff6502ea9d0472640cd9a253f252c4f5e1e7ce0 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 16 五月 2024 13:33:20 +0800
Subject: [PATCH] remove 移除 powerjob 相关菜单

---
 script/sql/ry_vue_5.X.sql |   62 +++++++++---------------------
 1 files changed, 19 insertions(+), 43 deletions(-)

diff --git a/script/sql/ry_vue_5.X.sql b/script/sql/ry_vue_5.X.sql
index 19d7242..84a1f9f 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 '鑿滃崟鍚嶇О',
@@ -293,10 +288,8 @@
 insert into sys_menu values('117',  'Admin鐩戞帶',   '2',   '5',  'Admin',            'monitor/admin/index',         '', 1, 0, 'C', '0', '0', 'monitor:admin:list',           'dashboard',     103, 1, sysdate(), null, null, 'Admin鐩戞帶鑿滃崟');
 -- oss鑿滃崟
 insert into sys_menu values('118',  '鏂囦欢绠$悊',     '1',   '10', 'oss',              'system/oss/index',            '', 1, 0, 'C', '0', '0', 'system:oss:list',              'upload',        103, 1, sysdate(), null, null, '鏂囦欢绠$悊鑿滃崟');
--- powerjob server鎺у埗鍙�
-insert into sys_menu values('120',  '浠诲姟璋冨害涓績',  '2',   '5',  'powerjob',           'monitor/powerjob/index',    '', 1, 0, 'C', '0', '0', 'monitor:powerjob:list',          'job',           103, 1, sysdate(), null, null, 'PowerJob鎺у埗鍙拌彍鍗�');
 -- retry server鎺у埗鍙�
-insert into sys_menu values('130',  'EasyRetry鎺у埗鍙�',  '2',   '6',  'easyretry',     'monitor/easyretry/index',    '', 1, 0, 'C', '0', '0', 'monitor:easyretry:list',          'job',           103, 1, sysdate(), null, null, 'EasyRetry鎺у埗鍙拌彍鍗�');
+insert into sys_menu values('120',  '浠诲姟璋冨害涓績',  '2',   '6',  'easyretry',     'monitor/easyretry/index',    '', 1, 0, 'C', '0', '0', 'monitor:easyretry:list',          'job',           103, 1, sysdate(), null, null, 'EasyRetry鎺у埗鍙拌彍鍗�');
 
 -- 涓夌骇鑿滃崟
 insert into sys_menu values('500',  '鎿嶄綔鏃ュ織', '108', '1', 'operlog',    'monitor/operlog/index',    '', 1, 0, 'C', '0', '0', 'monitor:operlog:list',    'form',          103, 1, sysdate(), null, null, '鎿嶄綔鏃ュ織鑿滃崟');
@@ -413,7 +406,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 +422,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 +518,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 +527,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 +542,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 +571,6 @@
 -- ----------------------------
 -- 11銆佸瓧鍏哥被鍨嬭〃
 -- ----------------------------
-drop table if exists sys_dict_type;
 create table sys_dict_type
 (
     dict_id          bigint(20)      not null                   comment '瀛楀吀涓婚敭',
@@ -615,7 +602,6 @@
 -- ----------------------------
 -- 12銆佸瓧鍏告暟鎹〃
 -- ----------------------------
-drop table if exists sys_dict_data;
 create table sys_dict_data
 (
     dict_code        bigint(20)      not null                   comment '瀛楀吀缂栫爜',
@@ -675,7 +661,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 +687,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 +709,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 +735,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 +765,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 +795,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,9 +814,8 @@
 -- ----------------------------
 -- OSS瀵硅薄瀛樺偍鍔ㄦ�侀厤缃〃
 -- ----------------------------
-drop table if exists sys_oss_config;
 create table sys_oss_config (
-    oss_config_id   bigint(20)    not null                  comment '涓诲缓',
+    oss_config_id   bigint(20)    not null                  comment '涓婚敭',
     tenant_id       varchar(20)             default '000000'comment '绉熸埛缂栧彿',
     config_key      varchar(20)   not null  default ''      comment '閰嶇疆key',
     access_key      varchar(255)            default ''      comment 'accessKey',
@@ -868,7 +847,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 +870,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 +889,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