فهرست منبع

eco 支持pgsql, flywaydb支持pgsql,调整初始化脚本

wanggaokun 1 سال پیش
والد
کامیت
8825211287

+ 0 - 2
eco-common/common-redis/src/main/java/org/eco/common/redis/utils/RedisUtils.java

@@ -32,10 +32,8 @@ import java.util.stream.Stream;
  * redis 工具类
  *
  * @author wgk
- * @version 3.1.0 新增
  */
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
-@SuppressWarnings(value = {"unchecked", "rawtypes"})
 public class RedisUtils {
 
     private static final RedissonClient CLIENT = SpringUtils.getBean(RedissonClient.class);

+ 0 - 1
eco-start/src/main/java/org/eco/web/service/impl/PasswordAuthStrategy.java

@@ -123,5 +123,4 @@ public class PasswordAuthStrategy implements IAuthStrategy {
         }
         return user;
     }
-
 }

+ 0 - 0
eco-start/src/main/resources/db/dm/V1_0_0_0__sys-init-ddl.sql → eco-start/src/main/resources/db/dm/V1_0_0_1__sys-init-ddl.sql


+ 0 - 0
eco-start/src/main/resources/db/dm/V1_0_0_1__sys-init-dml.sql → eco-start/src/main/resources/db/dm/V1_0_0_2__sys-init-dml.sql


+ 1 - 1
eco-start/src/main/resources/db/mysql/V1_0_0_1__sys-init-ddl.sql

@@ -174,7 +174,7 @@ CREATE TABLE `sys_import_export_t`  (
     `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '文件地址',
     `oss_id` bigint NULL DEFAULT NULL COMMENT '文件Id',
     `log_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '日志信息',
-    `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '1' COMMENT '状态(1正常  0异常 99部分正常)',
+    `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '1' COMMENT '状态(1正常  0异常 2部分正常)',
     `tenant_id` bigint NULL DEFAULT NULL COMMENT '租户号',
     `version` int NULL DEFAULT 0 COMMENT '乐观锁',
     `create_by` bigint NULL DEFAULT NULL COMMENT '创建人',

+ 1150 - 0
eco-start/src/main/resources/db/pgsql/V1_0_0_1__sys-init-ddl.sql

@@ -0,0 +1,1150 @@
+create table gen_table
+(
+    table_id          bigint                            not null,
+    table_name        varchar(200)  default ''::character varying,
+    table_comment     varchar(500)  default ''::character varying,
+    sub_table_name    varchar(64)   default ''::character varying,
+    sub_table_fk_name varchar(64)   default ''::character varying,
+    class_name        varchar(100)  default ''::character varying,
+    tpl_category      varchar(200)  default 'crud'::character varying,
+    package_name      varchar(100)  default NULL::character varying,
+    module_name       varchar(30)   default NULL::character varying,
+    business_name     varchar(30)   default NULL::character varying,
+    function_name     varchar(50)   default NULL::character varying,
+    function_author   varchar(50)   default NULL::character varying,
+    gen_type          char          default '0'::bpchar not null,
+    gen_path          varchar(200)  default '/'::character varying,
+    options           varchar(1000) default NULL::character varying,
+    version           integer       default 0,
+    create_by         bigint,
+    create_time       timestamp,
+    update_by         bigint,
+    update_time       timestamp,
+    remark            varchar(500)  default NULL::character varying,
+    constraint gen_table_pk
+        primary key (table_id)
+);
+
+comment on table gen_table is '代码生成业务表';
+
+comment on column gen_table.table_id is '编号';
+
+comment on column gen_table.table_name is '表名称';
+
+comment on column gen_table.table_comment is '表描述';
+
+comment on column gen_table.sub_table_name is '关联子表的表名';
+
+comment on column gen_table.sub_table_fk_name is '子表关联的外键名';
+
+comment on column gen_table.class_name is '实体类名称';
+
+comment on column gen_table.tpl_category is '使用的模板(CRUD单表操作 TREE树表操作)';
+
+comment on column gen_table.package_name is '生成包路径';
+
+comment on column gen_table.module_name is '生成模块名';
+
+comment on column gen_table.business_name is '生成业务名';
+
+comment on column gen_table.function_name is '生成功能名';
+
+comment on column gen_table.function_author is '生成功能作者';
+
+comment on column gen_table.gen_type is '生成代码方式(0zip压缩包 1自定义路径)';
+
+comment on column gen_table.gen_path is '生成路径(不填默认项目路径)';
+
+comment on column gen_table.options is '其它生成选项';
+
+comment on column gen_table.version is '乐观锁';
+
+comment on column gen_table.create_by is '创建者';
+
+comment on column gen_table.create_time is '创建时间';
+
+comment on column gen_table.update_by is '更新者';
+
+comment on column gen_table.update_time is '更新时间';
+
+comment on column gen_table.remark is '备注';
+
+create table gen_table_column
+(
+    column_id      bigint not null,
+    table_id       bigint,
+    column_name    varchar(200) default NULL::character varying,
+    column_comment varchar(500) default NULL::character varying,
+    column_type    varchar(100) default NULL::character varying,
+    java_type      varchar(500) default NULL::character varying,
+    java_field     varchar(200) default NULL::character varying,
+    is_pk          char         default NULL::bpchar,
+    is_increment   char         default NULL::bpchar,
+    is_required    char         default NULL::bpchar,
+    is_insert      char         default NULL::bpchar,
+    is_edit        char         default NULL::bpchar,
+    is_list        char         default NULL::bpchar,
+    is_query       char         default NULL::bpchar,
+    query_type     varchar(200) default 'EQ'::character varying,
+    html_type      varchar(200) default NULL::character varying,
+    dict_type      varchar(200) default ''::character varying,
+    sort           integer,
+    version        integer      default 0,
+    create_by      bigint,
+    create_time    timestamp,
+    update_by      bigint,
+    update_time    timestamp,
+    constraint gen_table_column_pk
+        primary key (column_id)
+);
+
+comment on table gen_table_column is '代码生成业务表字段';
+
+comment on column gen_table_column.column_id is '编号';
+
+comment on column gen_table_column.table_id is '归属表编号';
+
+comment on column gen_table_column.column_name is '列名称';
+
+comment on column gen_table_column.column_comment is '列描述';
+
+comment on column gen_table_column.column_type is '列类型';
+
+comment on column gen_table_column.java_type is 'JAVA类型';
+
+comment on column gen_table_column.java_field is 'JAVA字段名';
+
+comment on column gen_table_column.is_pk is '是否主键(1是)';
+
+comment on column gen_table_column.is_increment is '是否自增(1是)';
+
+comment on column gen_table_column.is_required is '是否必填(1是)';
+
+comment on column gen_table_column.is_insert is '是否为插入字段(1是)';
+
+comment on column gen_table_column.is_edit is '是否编辑字段(1是)';
+
+comment on column gen_table_column.is_list is '是否列表字段(1是)';
+
+comment on column gen_table_column.is_query is '是否查询字段(1是)';
+
+comment on column gen_table_column.query_type is '查询方式(等于、不等于、大于、小于、范围)';
+
+comment on column gen_table_column.html_type is '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)';
+
+comment on column gen_table_column.dict_type is '字典类型';
+
+comment on column gen_table_column.sort is '排序';
+
+comment on column gen_table_column.version is '乐观锁';
+
+comment on column gen_table_column.create_by is '创建者';
+
+comment on column gen_table_column.create_time is '创建时间';
+
+comment on column gen_table_column.update_by is '更新者';
+
+comment on column gen_table_column.update_time is '更新时间';
+
+create table sys_client
+(
+    id             bigint not null,
+    client_id      varchar(64)  default ''::character varying,
+    client_key     varchar(32)  default ''::character varying,
+    client_secret  varchar(255) default ''::character varying,
+    grant_type     varchar(255) default ''::character varying,
+    device_type    varchar(32)  default ''::character varying,
+    active_timeout integer      default 1800,
+    timeout        integer      default 604800,
+    status         char         default '0'::bpchar,
+    version        integer      default 0,
+    del_flag       smallint     default 0,
+    create_by      bigint,
+    create_time    timestamp,
+    update_by      bigint,
+    update_time    timestamp,
+    constraint sys_client_pk
+        primary key (id)
+);
+
+comment on table sys_client is '系统授权表';
+
+comment on column sys_client.id is '主建';
+
+comment on column sys_client.client_id is '客户端id';
+
+comment on column sys_client.client_key is '客户端key';
+
+comment on column sys_client.client_secret is '客户端秘钥';
+
+comment on column sys_client.grant_type is '授权类型';
+
+comment on column sys_client.device_type is '设备类型';
+
+comment on column sys_client.active_timeout is 'token活跃超时时间';
+
+comment on column sys_client.timeout is 'token固定超时';
+
+comment on column sys_client.status is '状态(1正常 0停用)';
+
+comment on column sys_client.version is '乐观锁';
+
+comment on column sys_client.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_client.create_by is '创建者';
+
+comment on column sys_client.create_time is '创建时间';
+
+comment on column sys_client.update_by is '更新者';
+
+comment on column sys_client.update_time is '更新时间';
+
+create table sys_config
+(
+    config_id    bigint                           not null,
+    tenant_id    bigint       default '0'::bigint not null,
+    config_name  varchar(100) default ''::character varying,
+    config_key   varchar(100) default ''::character varying,
+    config_value varchar(500) default ''::character varying,
+    config_type  char         default 'N'::bpchar,
+    version      integer      default 0,
+    create_by    bigint,
+    create_time  timestamp,
+    update_by    bigint,
+    update_time  timestamp,
+    remark       varchar(500) default NULL::character varying,
+    constraint sys_config_pk
+        primary key (config_id)
+);
+
+comment on table sys_config is '参数配置表';
+
+comment on column sys_config.config_id is '参数主键';
+
+comment on column sys_config.tenant_id is '租户编号';
+
+comment on column sys_config.config_name is '参数名称';
+
+comment on column sys_config.config_key is '参数键名';
+
+comment on column sys_config.config_value is '参数键值';
+
+comment on column sys_config.config_type is '系统内置(Y是 N否)';
+
+comment on column sys_config.version is '乐观锁';
+
+comment on column sys_config.create_by is '创建者';
+
+comment on column sys_config.create_time is '创建时间';
+
+comment on column sys_config.update_by is '更新者';
+
+comment on column sys_config.update_time is '更新时间';
+
+comment on column sys_config.remark is '备注';
+
+create table sys_dept
+(
+    dept_id     bigint not null,
+    tenant_id   bigint       default 0,
+    parent_id   bigint       default 0,
+    ancestors   varchar(760) default ''::character varying,
+    dept_name   varchar(30)  default ''::character varying,
+    order_num   integer      default 0,
+    leader      varchar(20)  default ''::character varying,
+    phone       varchar(11)  default NULL::character varying,
+    email       varchar(50)  default NULL::character varying,
+    status      char         default '0'::bpchar,
+    version     integer      default 0,
+    del_flag    smallint     default 0,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    constraint sys_dept_pk
+        primary key (dept_id)
+);
+
+comment on table sys_dept is '部门表';
+
+comment on column sys_dept.dept_id is '部门ID';
+
+comment on column sys_dept.tenant_id is '租户编号';
+
+comment on column sys_dept.parent_id is '父部门ID';
+
+comment on column sys_dept.ancestors is '祖级列表';
+
+comment on column sys_dept.dept_name is '部门名称';
+
+comment on column sys_dept.order_num is '显示顺序';
+
+comment on column sys_dept.leader is '负责人';
+
+comment on column sys_dept.phone is '联系电话';
+
+comment on column sys_dept.email is '邮箱';
+
+comment on column sys_dept.status is '部门状态(1正常 0停用)';
+
+comment on column sys_dept.version is '乐观锁';
+
+comment on column sys_dept.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_dept.create_by is '创建者';
+
+comment on column sys_dept.create_time is '创建时间';
+
+comment on column sys_dept.update_by is '更新者';
+
+comment on column sys_dept.update_time is '更新时间';
+
+create table sys_dict_data
+(
+    dict_code   bigint                           not null,
+    tenant_id   bigint       default '0'::bigint not null,
+    dict_sort   integer      default 0,
+    dict_label  varchar(100) default ''::character varying,
+    dict_value  varchar(100) default ''::character varying,
+    dict_type   varchar(100) default ''::character varying,
+    css_class   varchar(100) default NULL::character varying,
+    list_class  varchar(100) default NULL::character varying,
+    is_default  char         default 'N'::bpchar,
+    version     integer      default 0,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    remark      varchar(500) default NULL::character varying,
+    constraint sys_dict_data_pk
+        primary key (dict_code)
+);
+
+comment on table sys_dict_data is '字典数据表';
+
+comment on column sys_dict_data.dict_code is '字典编码';
+
+comment on column sys_dict_data.tenant_id is '租户编号';
+
+comment on column sys_dict_data.dict_sort is '字典排序';
+
+comment on column sys_dict_data.dict_label is '字典标签';
+
+comment on column sys_dict_data.dict_value is '字典键值';
+
+comment on column sys_dict_data.dict_type is '字典类型';
+
+comment on column sys_dict_data.css_class is '样式属性(其他样式扩展)';
+
+comment on column sys_dict_data.list_class is '表格回显样式';
+
+comment on column sys_dict_data.is_default is '是否默认(Y是 N否)';
+
+comment on column sys_dict_data.version is '乐观锁';
+
+comment on column sys_dict_data.create_by is '创建者';
+
+comment on column sys_dict_data.create_time is '创建时间';
+
+comment on column sys_dict_data.update_by is '更新者';
+
+comment on column sys_dict_data.update_time is '更新时间';
+
+comment on column sys_dict_data.remark is '备注';
+
+create table sys_dict_type
+(
+    dict_id     bigint                           not null,
+    tenant_id   bigint       default '0'::bigint not null,
+    dict_name   varchar(100) default ''::character varying,
+    dict_type   varchar(100) default ''::character varying,
+    version     integer      default 0,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    remark      varchar(500) default NULL::character varying,
+    constraint sys_dict_type_pk
+        primary key (dict_id)
+);
+
+comment on table sys_dict_type is '字典类型表';
+
+comment on column sys_dict_type.dict_id is '字典主键';
+
+comment on column sys_dict_type.tenant_id is '租户编号';
+
+comment on column sys_dict_type.dict_name is '字典名称';
+
+comment on column sys_dict_type.dict_type is '字典类型';
+
+comment on column sys_dict_type.version is '乐观锁';
+
+comment on column sys_dict_type.create_by is '创建者';
+
+comment on column sys_dict_type.create_time is '创建时间';
+
+comment on column sys_dict_type.update_by is '更新者';
+
+comment on column sys_dict_type.update_time is '更新时间';
+
+comment on column sys_dict_type.remark is '备注';
+
+create unique index sys_dict_type_index1
+    on sys_dict_type (tenant_id, dict_type);
+
+
+create table sys_import_export_t
+(
+    id          bigint                      not null,
+    name        varchar(255),
+    url         varchar(500),
+    oss_id      bigint,
+    log_info    text,
+    status      char    default '1'::bpchar not null,
+    tenant_id   bigint  default '0'::bigint not null,
+    version     integer default 0           not null,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    constraint sys_import_export_pk
+        primary key (id)
+);
+
+comment on table sys_import_export_t is '导入导出记录';
+
+comment on column sys_import_export_t.id is '唯一编码';
+
+comment on column sys_import_export_t.name is '文件名称';
+
+comment on column sys_import_export_t.url is '文件地址';
+
+comment on column sys_import_export_t.oss_id is '文件Id';
+
+comment on column sys_import_export_t.log_info is '日志信息';
+
+comment on column sys_import_export_t.status is '状态(1正常  0异常 2部分正常)';
+
+comment on column sys_import_export_t.tenant_id is '租户id';
+
+comment on column sys_import_export_t.version is '乐观锁';
+
+comment on column sys_import_export_t.create_by is '创建人';
+
+comment on column sys_import_export_t.create_time is '创建时间';
+
+comment on column sys_import_export_t.update_by is '更新人';
+
+comment on column sys_import_export_t.update_time is '更新时间';
+
+
+
+create table sys_logininfor
+(
+    info_id        bigint                           not null,
+    tenant_id      bigint       default '0'::bigint not null,
+    user_name      varchar(50)  default ''::character varying,
+    client_key     varchar(32)  default ''::character varying,
+    device_type    varchar(32)  default ''::character varying,
+    ipaddr         varchar(128) default ''::character varying,
+    login_location varchar(255) default ''::character varying,
+    browser        varchar(50)  default ''::character varying,
+    os             varchar(50)  default ''::character varying,
+    status         char         default '1'::bpchar,
+    msg            varchar(255) default ''::character varying,
+    login_time     timestamp,
+    constraint sys_logininfor_pk
+        primary key (info_id)
+);
+
+comment on table sys_logininfor is '系统访问记录';
+
+comment on column sys_logininfor.info_id is '访问ID';
+
+comment on column sys_logininfor.tenant_id is '租户编号';
+
+comment on column sys_logininfor.user_name is '用户账号';
+
+comment on column sys_logininfor.client_key is '客户端';
+
+comment on column sys_logininfor.device_type is '设备类型';
+
+comment on column sys_logininfor.ipaddr is '登录IP地址';
+
+comment on column sys_logininfor.login_location is '登录地点';
+
+comment on column sys_logininfor.browser is '浏览器类型';
+
+comment on column sys_logininfor.os is '操作系统';
+
+comment on column sys_logininfor.status is '登录状态(1成功 0失败)';
+
+comment on column sys_logininfor.msg is '提示消息';
+
+comment on column sys_logininfor.login_time is '访问时间';
+
+create index idx_sys_logininfor_lt
+    on sys_logininfor (login_time);
+
+create index idx_sys_logininfor_s
+    on sys_logininfor (status);
+
+create table sys_menu
+(
+    menu_id        bigint      not null,
+    menu_name      varchar(50) not null,
+    parent_id      bigint       default 0,
+    order_num      integer      default 0,
+    path           varchar(200) default ''::character varying,
+    component      varchar(255) default NULL::character varying,
+    query_param    varchar(255) default NULL::character varying,
+    is_frame       char         default '0'::bpchar,
+    is_cache       char         default '1'::bpchar,
+    menu_type      char         default ''::bpchar,
+    visible        char         default '1'::bpchar,
+    status         char         default '1'::bpchar,
+    perms          varchar(100) default NULL::character varying,
+    icon           varchar(100) default ''::character varying,
+    version        integer      default 0,
+    create_by      bigint,
+    create_time    timestamp,
+    update_by      bigint,
+    update_time    timestamp,
+    remark         varchar(500) default ''::character varying,
+    component_name varchar(255) default NULL::character varying,
+    constraint sys_menu_pk
+        primary key (menu_id)
+);
+
+comment on table sys_menu is '菜单权限表';
+
+comment on column sys_menu.menu_id is '菜单ID';
+
+comment on column sys_menu.menu_name is '菜单名称';
+
+comment on column sys_menu.parent_id is '父菜单ID';
+
+comment on column sys_menu.order_num is '显示顺序';
+
+comment on column sys_menu.path is '路由地址';
+
+comment on column sys_menu.component is '组件路径';
+
+comment on column sys_menu.query_param is '路由参数';
+
+comment on column sys_menu.is_frame is '是否为外链(1是 0否)';
+
+comment on column sys_menu.is_cache is '是否缓存(1缓存 0不缓存)';
+
+comment on column sys_menu.menu_type is '菜单类型(M目录 C菜单 F按钮)';
+
+comment on column sys_menu.visible is '显示状态(1显示 0隐藏)';
+
+comment on column sys_menu.status is '菜单状态(1正常 0停用)';
+
+comment on column sys_menu.perms is '权限标识';
+
+comment on column sys_menu.icon is '菜单图标';
+
+comment on column sys_menu.version is '乐观锁';
+
+comment on column sys_menu.create_by is '创建者';
+
+comment on column sys_menu.create_time is '创建时间';
+
+comment on column sys_menu.update_by is '更新者';
+
+comment on column sys_menu.update_time is '更新时间';
+
+comment on column sys_menu.remark is '备注';
+
+comment on column sys_menu.component_name is '组件名称';
+
+create table sys_notice
+(
+    notice_id      bigint                           not null,
+    tenant_id      bigint       default '0'::bigint not null,
+    notice_title   varchar(50)                      not null,
+    notice_type    char                             not null,
+    notice_content text,
+    status         char         default '1'::bpchar,
+    version        integer      default 0,
+    create_by      bigint,
+    create_time    timestamp,
+    update_by      bigint,
+    update_time    timestamp,
+    remark         varchar(255) default NULL::character varying,
+    constraint sys_notice_pk
+        primary key (notice_id)
+);
+
+comment on table sys_notice is '通知公告表';
+
+comment on column sys_notice.notice_id is '公告ID';
+
+comment on column sys_notice.tenant_id is '租户编号';
+
+comment on column sys_notice.notice_title is '公告标题';
+
+comment on column sys_notice.notice_type is '公告类型(1通知 2公告)';
+
+comment on column sys_notice.notice_content is '公告内容';
+
+comment on column sys_notice.status is '公告状态(1正常 0关闭)';
+
+comment on column sys_notice.version is '乐观锁';
+
+comment on column sys_notice.create_by is '创建者';
+
+comment on column sys_notice.create_time is '创建时间';
+
+comment on column sys_notice.update_by is '更新者';
+
+comment on column sys_notice.update_time is '更新时间';
+
+comment on column sys_notice.remark is '备注';
+
+create table sys_oper_log
+(
+    oper_id        bigint                            not null,
+    tenant_id      bigint        default '0'::bigint not null,
+    title          varchar(50)   default ''::character varying,
+    business_type  integer       default 0,
+    method         varchar(100)  default ''::character varying,
+    request_method varchar(10)   default ''::character varying,
+    operator_type  integer       default 0,
+    oper_name      varchar(50)   default ''::character varying,
+    dept_name      varchar(50)   default ''::character varying,
+    oper_url       varchar(255)  default ''::character varying,
+    oper_ip        varchar(128)  default ''::character varying,
+    oper_location  varchar(255)  default ''::character varying,
+    oper_param     varchar(2000) default ''::character varying,
+    json_result    varchar(2000) default ''::character varying,
+    status         integer       default 1,
+    error_msg      varchar(2000) default ''::character varying,
+    oper_time      timestamp,
+    cost_time      bigint        default 0,
+    constraint sys_oper_log_pk
+        primary key (oper_id)
+);
+
+comment on table sys_oper_log is '操作日志记录';
+
+comment on column sys_oper_log.oper_id is '日志主键';
+
+comment on column sys_oper_log.tenant_id is '租户编号';
+
+comment on column sys_oper_log.title is '模块标题';
+
+comment on column sys_oper_log.business_type is '业务类型(0其它 1新增 2修改 3删除)';
+
+comment on column sys_oper_log.method is '方法名称';
+
+comment on column sys_oper_log.request_method is '请求方式';
+
+comment on column sys_oper_log.operator_type is '操作类别(0其它 1后台用户 2手机端用户)';
+
+comment on column sys_oper_log.oper_name is '操作人员';
+
+comment on column sys_oper_log.dept_name is '部门名称';
+
+comment on column sys_oper_log.oper_url is '请求URL';
+
+comment on column sys_oper_log.oper_ip is '主机地址';
+
+comment on column sys_oper_log.oper_location is '操作地点';
+
+comment on column sys_oper_log.oper_param is '请求参数';
+
+comment on column sys_oper_log.json_result is '返回参数';
+
+comment on column sys_oper_log.status is '操作状态(1正常 0异常)';
+
+comment on column sys_oper_log.error_msg is '错误消息';
+
+comment on column sys_oper_log.oper_time is '操作时间';
+
+comment on column sys_oper_log.cost_time is '消耗时间';
+
+create index idx_sys_oper_log_bt
+    on sys_oper_log (business_type);
+
+create index idx_sys_oper_log_ot
+    on sys_oper_log (oper_time);
+
+create index idx_sys_oper_log_s
+    on sys_oper_log (status);
+
+create table sys_oss
+(
+    oss_id        bigint                                     not null,
+    tenant_id     bigint       default '0'::bigint           not null,
+    file_name     varchar(255) default ''::character varying not null,
+    original_name varchar(255) default ''::character varying not null,
+    file_suffix   varchar(10)  default ''::character varying not null,
+    url           varchar(500) default ''::character varying not null,
+    service       varchar(20)  default 'minio'::character varying,
+    version       integer      default 0,
+    create_by     bigint,
+    create_time   timestamp,
+    update_by     bigint,
+    update_time   timestamp,
+    constraint sys_oss_pk
+        primary key (oss_id)
+);
+
+comment on table sys_oss is 'OSS对象存储表';
+
+comment on column sys_oss.oss_id is '对象存储主键';
+
+comment on column sys_oss.tenant_id is '租户编码';
+
+comment on column sys_oss.file_name is '文件名';
+
+comment on column sys_oss.original_name is '原名';
+
+comment on column sys_oss.file_suffix is '文件后缀名';
+
+comment on column sys_oss.url is 'URL地址';
+
+comment on column sys_oss.service is '服务商';
+
+comment on column sys_oss.version is '乐观锁';
+
+comment on column sys_oss.create_by is '上传人';
+
+comment on column sys_oss.create_time is '创建时间';
+
+comment on column sys_oss.update_by is '更新者';
+
+comment on column sys_oss.update_time is '更新时间';
+
+create table sys_oss_config
+(
+    oss_config_id bigint                                     not null,
+    tenant_id     bigint       default '0'::bigint           not null,
+    config_key    varchar(20)  default ''::character varying not null,
+    access_key    varchar(255) default ''::character varying,
+    secret_key    varchar(255) default ''::character varying,
+    bucket_name   varchar(255) default ''::character varying,
+    prefix        varchar(255) default ''::character varying,
+    endpoint      varchar(255) default ''::character varying,
+    domain_name   varchar(255) default ''::character varying,
+    is_https      char         default 'N'::bpchar,
+    region        varchar(255) default ''::character varying,
+    access_policy char         default '1'::bpchar           not null,
+    status        char         default '1'::bpchar,
+    ext1          varchar(255) default ''::character varying,
+    version       integer      default 0,
+    create_by     bigint,
+    create_time   timestamp,
+    update_by     bigint,
+    update_time   timestamp,
+    remark        varchar(500) default ''::character varying,
+    constraint sys_oss_config_pk
+        primary key (oss_config_id)
+);
+
+comment on table sys_oss_config is '对象存储配置表';
+
+comment on column sys_oss_config.oss_config_id is '主建';
+
+comment on column sys_oss_config.tenant_id is '租户编码';
+
+comment on column sys_oss_config.config_key is '配置key';
+
+comment on column sys_oss_config.access_key is 'accessKey';
+
+comment on column sys_oss_config.secret_key is '秘钥';
+
+comment on column sys_oss_config.bucket_name is '桶名称';
+
+comment on column sys_oss_config.prefix is '前缀';
+
+comment on column sys_oss_config.endpoint is '访问站点';
+
+comment on column sys_oss_config.domain_name is '自定义域名';
+
+comment on column sys_oss_config.is_https is '是否https(Y=是,N=否)';
+
+comment on column sys_oss_config.region is '域';
+
+comment on column sys_oss_config.access_policy is '桶权限类型(0=private 1=public 2=custom)';
+
+comment on column sys_oss_config.status is '是否默认(1=是,0=否)';
+
+comment on column sys_oss_config.ext1 is '扩展字段';
+
+comment on column sys_oss_config.version is '乐观锁';
+
+comment on column sys_oss_config.create_by is '创建者';
+
+comment on column sys_oss_config.create_time is '创建时间';
+
+comment on column sys_oss_config.update_by is '更新者';
+
+comment on column sys_oss_config.update_time is '更新时间';
+
+comment on column sys_oss_config.remark is '备注';
+
+create table sys_post
+(
+    post_id     bigint                           not null,
+    tenant_id   bigint       default '0'::bigint not null,
+    post_code   varchar(64)                      not null,
+    post_name   varchar(50)                      not null,
+    post_sort   integer                          not null,
+    status      char                             not null,
+    version     integer      default 0,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    remark      varchar(500) default NULL::character varying,
+    constraint sys_post_pk
+        primary key (post_id)
+);
+
+comment on table sys_post is '岗位信息表';
+
+comment on column sys_post.post_id is '岗位ID';
+
+comment on column sys_post.tenant_id is '租户编号';
+
+comment on column sys_post.post_code is '岗位编码';
+
+comment on column sys_post.post_name is '岗位名称';
+
+comment on column sys_post.post_sort is '显示顺序';
+
+comment on column sys_post.status is '状态(0正常 1停用)';
+
+comment on column sys_post.version is '乐观锁';
+
+comment on column sys_post.create_by is '创建者';
+
+comment on column sys_post.create_time is '创建时间';
+
+comment on column sys_post.update_by is '更新者';
+
+comment on column sys_post.update_time is '更新时间';
+
+comment on column sys_post.remark is '备注';
+
+create table sys_role
+(
+    role_id             bigint                           not null,
+    tenant_id           bigint       default 0,
+    role_name           varchar(30)                      not null,
+    role_key            varchar(100)                     not null,
+    role_sort           integer                          not null,
+    data_scope          char         default '1'::bpchar,
+    menu_check_strictly boolean      default true,
+    dept_check_strictly boolean      default true,
+    status              char         default '1'::bpchar not null,
+    version             integer      default 0,
+    del_flag            smallint     default 0,
+    create_by           bigint,
+    create_time         timestamp,
+    update_by           bigint,
+    update_time         timestamp,
+    remark              varchar(500) default NULL::character varying,
+    constraint sys_role_pk
+        primary key (role_id)
+);
+
+comment on table sys_role is '角色信息表';
+
+comment on column sys_role.role_id is '角色ID';
+
+comment on column sys_role.tenant_id is '租户编号';
+
+comment on column sys_role.role_name is '角色名称';
+
+comment on column sys_role.role_key is '角色权限字符串';
+
+comment on column sys_role.role_sort is '显示顺序';
+
+comment on column sys_role.data_scope is '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
+
+comment on column sys_role.menu_check_strictly is '菜单树选择项是否关联显示';
+
+comment on column sys_role.dept_check_strictly is '部门树选择项是否关联显示';
+
+comment on column sys_role.status is '角色状态(1正常 0停用)';
+
+comment on column sys_role.version is '乐观锁';
+
+comment on column sys_role.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_role.create_by is '创建者';
+
+comment on column sys_role.create_time is '创建时间';
+
+comment on column sys_role.update_by is '更新者';
+
+comment on column sys_role.update_time is '更新时间';
+
+comment on column sys_role.remark is '备注';
+
+create table sys_role_dept
+(
+    role_id bigint not null,
+    dept_id bigint not null,
+    constraint sys_role_dept_pk
+        primary key (role_id, dept_id)
+);
+
+comment on table sys_role_dept is '角色和部门关联表';
+
+comment on column sys_role_dept.role_id is '角色ID';
+
+comment on column sys_role_dept.dept_id is '部门ID';
+
+create table sys_role_menu
+(
+    role_id bigint not null,
+    menu_id bigint not null,
+    constraint sys_role_menu_pk
+        primary key (role_id, menu_id)
+);
+
+comment on table sys_role_menu is '角色和菜单关联表';
+
+comment on column sys_role_menu.role_id is '角色ID';
+
+comment on column sys_role_menu.menu_id is '菜单ID';
+
+create table sys_tenant_package
+(
+    package_id          bigint not null,
+    package_name        varchar(20)   default ''::character varying,
+    menu_ids            varchar(3000) default ''::character varying,
+    remark              varchar(200)  default ''::character varying,
+    menu_check_strictly boolean       default true,
+    status              char          default '1'::bpchar,
+    version             integer       default 0,
+    del_flag            smallint      default 0,
+    create_by           bigint,
+    create_time         timestamp,
+    update_by           bigint,
+    update_time         timestamp,
+    primary key (package_id)
+);
+
+comment on table sys_tenant_package is '租户套餐表';
+
+comment on column sys_tenant_package.package_id is '租户套餐id';
+
+comment on column sys_tenant_package.package_name is '套餐名称';
+
+comment on column sys_tenant_package.menu_ids is '关联菜单id';
+
+comment on column sys_tenant_package.remark is '备注';
+
+comment on column sys_tenant_package.status is '状态(1正常 0停用)';
+
+comment on column sys_tenant_package.version is '乐观锁';
+
+comment on column sys_tenant_package.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_tenant_package.create_by is '创建者';
+
+comment on column sys_tenant_package.create_time is '创建时间';
+
+comment on column sys_tenant_package.update_by is '更新者';
+
+comment on column sys_tenant_package.update_time is '更新时间';
+
+create table sys_tenant
+(
+    tenant_id         bigint not null,
+    contact_user_name varchar(20)  default NULL::character varying,
+    contact_phone     varchar(20)  default NULL::character varying,
+    company_name      varchar(50)  default NULL::character varying,
+    license_number    varchar(30)  default NULL::character varying,
+    address           varchar(200) default NULL::character varying,
+    intro             varchar(200) default NULL::character varying,
+    domain            varchar(200) default NULL::character varying,
+    remark            varchar(200) default NULL::character varying,
+    package_id        bigint,
+    expire_time       timestamp,
+    account_count     integer      default '-1'::integer,
+    status            char         default '1'::bpchar,
+    version           integer      default 0,
+    del_flag          smallint     default 0,
+    create_by         bigint,
+    create_time       timestamp,
+    update_by         bigint,
+    update_time       timestamp,
+    constraint pk_sys_tenant
+        primary key (tenant_id)
+);
+
+comment on table sys_tenant is '租户表';
+
+comment on column sys_tenant.tenant_id is '租户编号';
+
+comment on column sys_tenant.contact_user_name is '联系人';
+
+comment on column sys_tenant.contact_phone is '联系电话';
+
+comment on column sys_tenant.company_name is '企业名称';
+
+comment on column sys_tenant.license_number is '统一社会信用代码';
+
+comment on column sys_tenant.address is '地址';
+
+comment on column sys_tenant.intro is '企业简介';
+
+comment on column sys_tenant.domain is '域名';
+
+comment on column sys_tenant.remark is '备注';
+
+comment on column sys_tenant.package_id is '租户套餐编号';
+
+comment on column sys_tenant.expire_time is '过期时间';
+
+comment on column sys_tenant.account_count is '用户数量(-1不限制)';
+
+comment on column sys_tenant.status is '租户状态(1正常 0停用)';
+
+comment on column sys_tenant.version is '乐观锁';
+
+comment on column sys_tenant.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_tenant.create_by is '创建者';
+
+comment on column sys_tenant.create_time is '创建时间';
+
+comment on column sys_tenant.update_by is '更新者';
+
+comment on column sys_tenant.update_time is '更新时间';
+
+create table sys_user
+(
+    user_id     bigint                                     not null,
+    tenant_id   bigint,
+    dept_id     bigint,
+    user_name   varchar(30)                                not null,
+    nick_name   varchar(30)                                not null,
+    user_type   varchar(10)  default 'sys_user'::character varying,
+    email       varchar(50)  default ''::character varying not null,
+    phonenumber varchar(11)  default ''::character varying,
+    gender      char         default '0'::bpchar,
+    avatar      bigint,
+    password    varchar(100) default ''::character varying,
+    status      char         default '1'::bpchar,
+    version     integer      default 0,
+    del_flag    smallint     default 0,
+    login_ip    varchar(128) default ''::character varying,
+    login_date  timestamp,
+    create_by   bigint,
+    create_time timestamp,
+    update_by   bigint,
+    update_time timestamp,
+    remark      varchar(500) default NULL::character varying,
+    constraint sys_user_pk
+        primary key (user_id)
+);
+
+comment on table sys_user is '用户信息表';
+
+comment on column sys_user.user_id is '用户ID';
+
+comment on column sys_user.tenant_id is '租户编号';
+
+comment on column sys_user.dept_id is '部门ID';
+
+comment on column sys_user.user_name is '用户账号';
+
+comment on column sys_user.nick_name is '用户昵称';
+
+comment on column sys_user.user_type is '用户类型(sys_user系统用户)';
+
+comment on column sys_user.email is '用户邮箱';
+
+comment on column sys_user.phonenumber is '手机号码';
+
+comment on column sys_user.gender is '用户性别(0男 1女 2未知)';
+
+comment on column sys_user.avatar is '头像地址';
+
+comment on column sys_user.password is '密码';
+
+comment on column sys_user.status is '帐号状态(1正常 0停用)';
+
+comment on column sys_user.version is '乐观锁';
+
+comment on column sys_user.del_flag is '删除标志(0代表存在 1代表删除)';
+
+comment on column sys_user.login_ip is '最后登陆IP';
+
+comment on column sys_user.login_date is '最后登陆时间';
+
+comment on column sys_user.create_by is '创建者';
+
+comment on column sys_user.create_time is '创建时间';
+
+comment on column sys_user.update_by is '更新者';
+
+comment on column sys_user.update_time is '更新时间';
+
+comment on column sys_user.remark is '备注';
+
+create unique index sys_user_unqindex_tenant_username
+    on sys_user (tenant_id, user_name);
+
+create table sys_user_post
+(
+    user_id bigint not null,
+    post_id bigint not null,
+    constraint sys_user_post_pk
+        primary key (user_id, post_id)
+);
+
+comment on table sys_user_post is '用户与岗位关联表';
+
+comment on column sys_user_post.user_id is '用户ID';
+
+comment on column sys_user_post.post_id is '岗位ID';
+
+create table sys_user_role
+(
+    user_id bigint not null,
+    role_id bigint not null,
+    constraint sys_user_role_pk
+        primary key (user_id, role_id)
+);
+
+comment on table sys_user_role is '用户和角色关联表';
+
+comment on column sys_user_role.user_id is '用户ID';
+
+comment on column sys_user_role.role_id is '角色ID';
+
+create function cast_varchar_to_timestamp(character varying) returns timestamp with time zone
+    strict
+    language sql
+as
+$$
+select to_timestamp($1, 'yyyy-mm-dd hh24:mi:ss');
+$$;
+
+create function find_in_set(value anyelement, string_list text) returns integer
+    language plpgsql
+as
+$$
+DECLARE
+    position INTEGER;
+BEGIN
+    IF string_list = '' THEN
+        RETURN 0;
+    ELSE
+        position := array_position(string_to_array(string_list, ','), value::TEXT);
+        RETURN position;
+    END IF;
+END;
+$$;
+

+ 731 - 0
eco-start/src/main/resources/db/pgsql/V1_0_0_2__sys-init-dml.sql

@@ -0,0 +1,731 @@
+INSERT INTO sys_client (id, client_id, client_key, client_secret, grant_type, device_type, active_timeout, timeout,
+                        status, version, del_flag, create_by, create_time, update_by, update_time)
+VALUES (1, 'e5cd7e4891bf95d1d19206ce24a7b32e', 'pc', 'pc123', 'password,social', 'pc', 1800, 604800, '1', 0, 0, 1,
+        '2024-07-02 19:10:38.589172', 1, '2024-07-02 19:10:38.589172');
+INSERT INTO sys_client (id, client_id, client_key, client_secret, grant_type, device_type, active_timeout, timeout,
+                        status, version, del_flag, create_by, create_time, update_by, update_time)
+VALUES (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, '1', 0,
+        0, 1, '2024-07-02 19:10:38.595159', 1, '2024-07-02 19:10:38.595159');
+
+
+INSERT INTO sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version, create_by,
+                        create_time, update_by, update_time, remark)
+VALUES (1, 0, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2024-07-02 19:10:38.696767',
+        NULL, NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
+INSERT INTO sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version, create_by,
+                        create_time, update_by, update_time, remark)
+VALUES (2, 0, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 0, 1, '2024-07-02 19:10:38.704711', NULL,
+        NULL, '初始化密码 123456');
+INSERT INTO sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version, create_by,
+                        create_time, update_by, update_time, remark)
+VALUES (3, 0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2024-07-02 19:10:38.711564', NULL,
+        NULL, '深色主题theme-dark,浅色主题theme-light');
+INSERT INTO sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version, create_by,
+                        create_time, update_by, update_time, remark)
+VALUES (5, 0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 0, 1,
+        '2024-07-02 19:10:38.719764', NULL, NULL, '是否开启注册用户功能(true开启,false关闭)');
+INSERT INTO sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version, create_by,
+                        create_time, update_by, update_time, remark)
+VALUES (6, 0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2024-07-02 19:10:38.729447',
+        NULL, NULL, 'true:开启, false:关闭');
+
+
+INSERT INTO sys_dept (dept_id, tenant_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status,
+                      version, del_flag, create_by, create_time, update_by, update_time)
+VALUES (108150551736287232, 0, 1, '0,1', 'XX组', 2, 'eco', '', NULL, '1', 3, 0, 1, '2024-01-25 23:32:40', 1,
+        '2024-06-21 15:15:03.381');
+INSERT INTO sys_dept (dept_id, tenant_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status,
+                      version, del_flag, create_by, create_time, update_by, update_time)
+VALUES (1, 0, 0, '0', 'XX部门', 0, 'eco-admin', '18888888888', 'ecoadmin@wo.cn', '1', 7, 0, 1, '2023-06-03 21:32:28', 1,
+        '2024-06-21 15:15:03.534');
+
+
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (1, 0, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
+        '性别男');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (2, 0, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
+        '性别女');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (3, 0, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
+        '性别未知');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (4, 0, 1, '显示', '1', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (5, 0, 2, '隐藏', '0', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (6, 0, 1, '正常', '1', 'sys_normal_disable', '', 'primary', 'Y', 1, 1, '2023-06-03 21:32:30', 1,
+        '2024-06-25 16:17:22.739', '正常状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (7, 0, 2, '停用', '0', 'sys_normal_disable', '', 'danger', 'N', 1, 1, '2023-06-03 21:32:30', 1,
+        '2024-06-25 16:17:28.453', '停用状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (8, 0, 1, '正常', '1', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (9, 0, 2, '暂停', '0', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (10, 0, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (11, 0, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (12, 0, 1, '是', '1', 'sys_yes_no', '', 'primary', 'Y', 1, 1, '2023-06-03 21:32:30', 1,
+        '2024-06-25 17:03:06.185', '系统默认是');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (13, 0, 2, '否', '0', 'sys_yes_no', '', 'danger', 'N', 1, 1, '2023-06-03 21:32:30', 1, '2024-06-25 17:03:13.399',
+        '系统默认否');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (14, 0, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (15, 0, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (16, 0, 1, '正常', '1', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '正常状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (17, 0, 2, '关闭', '0', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '关闭状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (18, 0, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (19, 0, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (20, 0, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (21, 0, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (22, 0, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (23, 0, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (24, 0, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (25, 0, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (26, 0, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '生成操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (27, 0, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '清空操作');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (28, 0, 1, '成功', '1', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '正常状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (29, 0, 2, '失败', '0', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
+        '停用状态');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (30, 0, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51',
+        1, '2023-10-21 11:10:51', '密码认证');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (31, 0, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
+        '2023-10-21 11:10:51', '短信认证');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (32, 0, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
+        '2023-10-21 11:10:51', '邮件认证');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (33, 0, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
+        '2023-10-21 11:10:51', '小程序认证');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (34, 0, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1,
+        '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (35, 0, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
+        '2023-10-21 11:41:10', 'PC');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (36, 0, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
+        '2023-10-21 11:41:10', '安卓');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (37, 0, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
+        '2023-10-21 11:41:10', 'iOS');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (38, 0, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
+        '2023-10-21 11:41:10', '小程序');
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (105, 0, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (106, 0, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (107, 0, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (111, 0, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1,
+        '2023-09-19 17:31:46', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (65923231885905920, 0, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:23', 1,
+        '2023-10-01 10:56:23', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (65923379802230784, 0, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1,
+        '2023-10-01 10:56:59', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (65923470604718080, 0, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1,
+        '2023-10-01 10:57:20', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (163136166100500480, 0, 1, '是', 'Y', 'sys_y_n', NULL, 'primary', 'N', 0, 1, '2024-06-25 17:05:52.922', 1,
+        '2024-06-25 17:05:52.922', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (163136226775302144, 0, 2, '否', 'N', 'sys_y_n', NULL, 'primary', 'N', 0, 1, '2024-06-25 17:06:07.389', 1,
+        '2024-06-25 17:06:07.389', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (164977316852162560, 0, 0, '导入', '0', 'excel_type', NULL, NULL, 'N', 0, 1, '2024-06-30 19:01:57.469', 1,
+        '2024-06-30 19:01:57.469', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (164977361886404608, 0, 1, '导出', '1', 'excel_type', NULL, NULL, 'N', 0, 1, '2024-06-30 19:02:08.205', 1,
+        '2024-06-30 19:02:08.205', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (164977834731266048, 0, 1, '失败', '0', 'excel_status', NULL, 'danger', 'N', 1, 1, '2024-06-30 19:04:00', 1,
+        '2024-06-30 19:04:07.843', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (164977927396024320, 0, 0, '成功', '1', 'excel_status', NULL, 'primary', 'N', 0, 1, '2024-06-30 19:04:23.032', 1,
+        '2024-06-30 19:04:23.032', NULL);
+INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class,
+                           is_default, version, create_by, create_time, update_by, update_time, remark)
+VALUES (164977999110234112, 0, 2, '部分成功', '2', 'excel_status', NULL, 'warning', 'N', 1, 1, '2024-06-30 19:04:40', 1,
+        '2024-06-30 19:11:35.009', NULL);
+
+
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (1, 0, '用户性别', 'sys_user_gender', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (2, 0, '菜单状态', 'sys_show_hide', 0, 1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (3, 0, '系统开关', 'sys_normal_disable', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (4, 0, '任务状态', 'sys_job_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (5, 0, '任务分组', 'sys_job_group', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (6, 0, '系统是否', 'sys_yes_no', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (7, 0, '通知类型', 'sys_notice_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (8, 0, '通知状态', 'sys_notice_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (9, 0, '操作类型', 'sys_oper_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (10, 0, '系统状态', 'sys_common_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (11, 0, '授权类型', 'sys_grant_type', 0, 1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (12, 0, '设备类型', 'sys_device_type', 0, 1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (102, 0, '商品种类', 'sys_goods_type', 0, 1, '2023-06-05 07:23:20', 1, NULL, NULL);
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (65922863223361536, 0, '系统类型', 'sys_app_type', 0, 1, '2023-10-01 10:54:55', 1, '2023-10-01 10:54:55',
+        '系统类型列表');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (118192295228071936, 0, '是否缓存', 'sys_cache', 0, 1, '2024-02-22 16:34:59.09', 1, '2024-02-22 16:34:59.09',
+        NULL);
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (163135360617971712, 0, '系统是否YN', 'sys_y_n', 0, 1, '2024-06-25 17:02:40.88', 1, '2024-06-25 17:02:40.88',
+        '对应值为Y N');
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (164977231074451456, 0, 'Excel类型', 'excel_type', 0, 1, '2024-06-30 19:01:37.018', 1, '2024-06-30 19:01:37.018',
+        NULL);
+INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
+                           update_time, remark)
+VALUES (164977592506015744, 0, 'Excel状态', 'excel_status', 0, 1, '2024-06-30 19:03:03.189', 1,
+        '2024-06-30 19:03:03.189', 'Excel状态');
+
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1011, '角色导出', 101, 5, '', '', '', '0', '1', 'F', '1', '1', 'system:role:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1022, '岗位修改', 104, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:post:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1016, '部门查询', 103, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:dept:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1018, '部门修改', 103, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:dept:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1020, '岗位查询', 104, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:post:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1010, '角色删除', 101, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:role:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1007, '角色查询', 101, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:role:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1029, '字典导出', 105, 5, '', '', '', '0', '1', 'F', '1', '1', 'system:dict:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1015, '菜单删除', 102, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:menu:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1014, '菜单修改', 102, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:menu:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1013, '菜单新增', 102, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:menu:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1023, '岗位删除', 104, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:post:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1012, '菜单查询', 102, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:menu:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1024, '岗位导出', 104, 5, '', '', '', '0', '1', 'F', '1', '1', 'system:post:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1059, '预览代码', 116, 5, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:preview', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1060, '生成代码', 116, 6, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:code', '', 0, 1, '2023-06-03 21:32:29',
+        1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1008, '角色新增', 101, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:role:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1600, '文件查询', 118, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:oss:query', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1601, '文件上传', 118, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:oss:upload', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1602, '文件下载', 118, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:oss:download', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1017, '部门新增', 103, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:dept:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1021, '岗位新增', 104, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:post:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1019, '部门删除', 103, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:dept:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1009, '角色修改', 101, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:role:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1025, '字典查询', 105, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:dict:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1026, '字典新增', 105, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:dict:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1027, '字典修改', 105, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:dict:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1028, '字典删除', 105, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:dict:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1039, '操作查询', 500, 1, '', '', '', '0', '1', 'F', '1', '1', 'monitor:operlog:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1040, '操作删除', 500, 2, '', '', '', '0', '1', 'F', '1', '1', 'monitor:operlog:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1041, '日志导出', 500, 3, '', '', '', '0', '1', 'F', '1', '1', 'monitor:operlog:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1042, '登录查询', 501, 1, '', '', '', '0', '1', 'F', '1', '1', 'monitor:logininfor:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1043, '登录删除', 501, 2, '', '', '', '0', '1', 'F', '1', '1', 'monitor:logininfor:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1044, '日志导出', 501, 3, '', '', '', '0', '1', 'F', '1', '1', 'monitor:logininfor:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1045, '账户解锁', 501, 4, '', '', '', '0', '1', 'F', '1', '1', 'monitor:logininfor:unlock', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1000, '用户查询', 100, 1, '', '', '', '0', '1', 'F', '1', '1', 'system:user:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1055, '生成查询', 116, 1, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:query', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1056, '生成修改', 116, 2, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:edit', '', 0, 1, '2023-06-03 21:32:29',
+        1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1057, '生成删除', 116, 3, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1001, '用户新增', 100, 2, '', '', '', '0', '1', 'F', '1', '1', 'system:user:add', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1002, '用户修改', 100, 3, '', '', '', '0', '1', 'F', '1', '1', 'system:user:edit', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1603, '文件删除', 118, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:oss:remove', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1620, '配置列表', 118, 5, '', '', '', '0', '1', 'F', '1', '1', 'system:ossConfig:list', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1621, '配置添加', 118, 6, '', '', '', '0', '1', 'F', '1', '1', 'system:ossConfig:add', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1622, '配置编辑', 118, 6, '', '', '', '0', '1', 'F', '1', '1', 'system:ossConfig:edit', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1623, '配置删除', 118, 6, '', '', '', '0', '1', 'F', '1', '1', 'system:ossConfig:remove', '', 0, 1,
+        '2023-12-25 15:09:14.342224', NULL, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1003, '用户删除', 100, 4, '', '', '', '0', '1', 'F', '1', '1', 'system:user:remove', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1004, '用户导出', 100, 5, '', '', '', '0', '1', 'F', '1', '1', 'system:user:export', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1005, '用户导入', 100, 6, '', '', '', '0', '1', 'F', '1', '1', 'system:user:import', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1006, '重置密码', 100, 7, '', '', '', '0', '1', 'F', '1', '1', 'system:user:resetPwd', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1058, '导入代码', 116, 4, '', '', '', '0', '1', 'F', '1', '1', 'tool:gen:import', '', 0, 1,
+        '2023-06-03 21:32:29', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (103, '部门管理', 1, 4, '/system/dept', 'system/dept/index', '', '0', '1', 'C', '1', '1', 'system:dept:list',
+        'user', 1, 1, '2023-06-03 21:32:28', 1, '2024-06-20 23:09:12.86', '部门管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (3, '系统工具', 0, 40, 'tool', NULL, '', '0', '1', 'M', '1', '1', '', 'Setting', 4, 1, '2023-06-03 21:32:28', 1,
+        '2024-07-02 11:13:23.957', '系统工具目录', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (100, '用户管理', 1, 1, '/system/user', 'system/user/index', '', '0', '1', 'C', '1', '1', 'system:user:list',
+        'User', 10, 1, '2023-06-03 21:32:28', 1, '2024-06-20 23:06:29.359', '用户管理菜单', 'User');
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (101, '角色管理', 1, 2, '/system/role', 'system/role/index', '', '0', '1', 'C', '1', '1', 'system:role:list',
+        'peoples', 5, 1, '2023-06-03 21:32:28', 1, '2024-06-26 00:02:56.851', '角色管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (102, '菜单管理', 1, 3, '/system/menu', 'system/menu/index', '', '0', '1', 'C', '1', '1', 'system:menu:list',
+        'Menu', 3, 1, '2023-06-03 21:32:28', 1, '2024-06-26 00:03:41.324', '菜单管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (1, '系统管理', 0, 10, 'system', NULL, '', '0', '1', 'M', '1', '1', '', 'system', 11, 1, '2023-06-03 21:32:28',
+        1, '2024-07-02 11:13:16.88', '系统管理目录', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (116, '代码生成', 3, 0, '/tool/gen', 'tool/gen/index', '', '0', '1', 'C', '1', '1', 'tool:gen:list', 'code', 3,
+        1, '2023-06-03 21:32:28', 1, '2024-06-20 23:10:40.608', '代码生成菜单', 'gen');
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (105, '字典管理', 1, 6, '/system/dict', 'system/dict/index', '', '0', '1', 'C', '1', '1', 'system:dict:list',
+        'dict', 1, 1, '2023-06-03 21:32:28', 1, '2024-06-20 23:09:49.77', '字典管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (500, '操作日志', 108, 1, '/monitor/operlog', 'monitor/operlog/index', '', '0', '1', 'C', '1', '1',
+        'monitor:operlog:list', 'logininfor', 1, 1, '2023-06-03 21:32:29', 1, '2024-06-20 23:10:59.271', '操作日志菜单',
+        NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (104, '岗位管理', 1, 5, '/system/post', 'system/post/index', '', '0', '1', 'C', '1', '1', 'system:post:list',
+        'Connection', 1, 1, '2023-06-03 21:32:28', 1, '2024-06-20 23:09:27.49', '岗位管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (108, '日志管理', 1, 9, 'log', '', '', '0', '1', 'M', '1', '1', '', 'log', 1, 1, '2023-06-03 21:32:28', 1,
+        '2024-06-20 23:09:58.829', '日志管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (501, '登录日志', 108, 2, '/monitor/logininfor', 'monitor/logininfor/index', '', '0', '1', 'C', '1', '1',
+        'monitor:logininfor:list', 'logininfor', 1, 1, '2023-06-03 21:32:29', 1, '2024-06-20 23:11:12.076',
+        '登录日志菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (118, '文件管理', 1, 10, '/system/oss', 'system/oss/index', '', '0', '1', 'C', '1', '1', 'system:oss:list',
+        'Files', 1, 1, '2023-12-03 08:46:11', 1, '2024-06-20 23:10:13.192', '文件管理菜单', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053900, '系统配置', 1, 11, '/system/config', 'system/config/index', NULL, '0', '1', 'C', '1', '1',
+        'system:config:list', 'system', 5, 1, '2024-06-24 14:06:29.531', 1, '2024-06-25 22:46:45.372', '参数配置菜单',
+        'config');
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053901, '系统配置查询', 2024062414053900, 1, '', '', NULL, '0', '1', 'F', '1', '1',
+        'system:config:query', '', 0, 1, '2024-06-24 14:06:29.547', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053902, '系统配置新增', 2024062414053900, 2, '', '', NULL, '0', '1', 'F', '1', '1',
+        'system:config:add', '', 0, 1, '2024-06-24 14:06:29.563', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053903, '系统配置修改', 2024062414053900, 3, '', '', NULL, '0', '1', 'F', '1', '1',
+        'system:config:edit', '', 0, 1, '2024-06-24 14:06:29.579', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053904, '系统配置删除', 2024062414053900, 4, '', '', NULL, '0', '1', 'F', '1', '1',
+        'system:config:remove', '', 0, 1, '2024-06-24 14:06:29.594', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (2024062414053905, '系统配置导出', 2024062414053900, 5, '', '', NULL, '0', '1', 'F', '1', '1',
+        'system:config:export', '', 0, 1, '2024-06-24 14:06:29.61', 1, NULL, '', NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (165584491999055872, '系统监控', 0, 30, 'monitor', NULL, NULL, '0', NULL, 'M', '1', '1', NULL, 'monitor', 0, 1,
+        '2024-07-02 11:14:39.303', 1, '2024-07-02 11:14:39.303', NULL, NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (165640125234753536, '任务调度', 165584491999055872, 10, '/monitor/powerjob', 'monitor/powerjob/index', NULL,
+        '0', '1', 'C', '1', '1', NULL, 'job', 0, 1, '2024-07-02 14:55:43.3', 1, '2024-07-02 14:55:43.3', NULL, NULL);
+INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
+                      menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time,
+                      remark, component_name)
+VALUES (165640396031602688, '服务监控', 165584491999055872, 20, '/monitor/admin', 'monitor/admin/index', NULL, '0', '1',
+        'C', '1', '1', NULL, 'server', 0, 1, '2024-07-02 14:56:47.863', 1, '2024-07-02 14:56:47.863', NULL, NULL);
+
+
+INSERT INTO sys_oss_config (oss_config_id, tenant_id, config_key, access_key, secret_key, bucket_name, prefix, endpoint,
+                            domain_name, is_https, region, access_policy, status, ext1, version, create_by, create_time,
+                            update_by, update_time, remark)
+VALUES (1, 0, 'minio', 'rzbRpmQLtD49FRwDU0kW', '3EcOTTxS9btVQlt9pXFAsM3p7E557B5kqn0aNKbx', 'eco-bucket', '',
+        '127.0.0.1:9000', '', 'N', '', '1', '1', '', 3, 1, '2023-11-30 11:54:13', 1, '2024-06-25 18:53:12.414', NULL);
+INSERT INTO sys_oss_config (oss_config_id, tenant_id, config_key, access_key, secret_key, bucket_name, prefix, endpoint,
+                            domain_name, is_https, region, access_policy, status, ext1, version, create_by, create_time,
+                            update_by, update_time, remark)
+VALUES (2, 0, 'qiniu', 'eco-qiniu', 'eco-qiniu', 'eco-bucket', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '0',
+        '', 6, 1, '2023-11-30 11:54:13', 1, '2024-06-28 15:43:47.324', NULL);
+INSERT INTO sys_oss_config (oss_config_id, tenant_id, config_key, access_key, secret_key, bucket_name, prefix, endpoint,
+                            domain_name, is_https, region, access_policy, status, ext1, version, create_by, create_time,
+                            update_by, update_time, remark)
+VALUES (3, 0, 'aliyun', 'eco-aliyun', 'eco-aliyun', 'eco-bucket', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1',
+        '0', '', 2, 1, '2023-11-30 11:54:13', 1, '2024-06-24 17:56:15.621', NULL);
+INSERT INTO sys_oss_config (oss_config_id, tenant_id, config_key, access_key, secret_key, bucket_name, prefix, endpoint,
+                            domain_name, is_https, region, access_policy, status, ext1, version, create_by, create_time,
+                            update_by, update_time, remark)
+VALUES (4, 0, 'qcloud', 'eco-qcloud', 'eco-qcloud', 'eco-bucket', '', 'cos.ap-beijing.myqcloud.com', '', 'N', '', '1',
+        '0', '', 2, 1, '2023-11-30 11:54:13', 1, '2024-06-24 17:56:28.199', NULL);
+INSERT INTO sys_oss_config (oss_config_id, tenant_id, config_key, access_key, secret_key, bucket_name, prefix, endpoint,
+                            domain_name, is_https, region, access_policy, status, ext1, version, create_by, create_time,
+                            update_by, update_time, remark)
+VALUES (5, 0, 'local', 'eco-local', 'eco-local', 'eco-bucket', '', 'localhost', '', 'N', '', '1', '0', '', 8, 1,
+        '2024-06-25 15:35:13', 1, '2024-06-26 11:07:04.099', '');
+
+INSERT INTO sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by, create_time,
+                      update_by, update_time, remark)
+VALUES (1, 0, 'ceo', '董事长', 1, '1', 0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', '');
+INSERT INTO sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by, create_time,
+                      update_by, update_time, remark)
+VALUES (2, 0, 'se', '项目经理', 2, '1', 0, 1, '2023-06-03 21:32:28', 1, NULL, '');
+INSERT INTO sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by, create_time,
+                      update_by, update_time, remark)
+VALUES (3, 0, 'hr', '人力资源', 3, '1', 0, 1, '2023-06-03 21:32:28', 1, NULL, '');
+INSERT INTO sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by, create_time,
+                      update_by, update_time, remark)
+VALUES (4, 0, 'users', '普通员工', 4, '1', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', '');
+INSERT INTO sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by, create_time,
+                      update_by, update_time, remark)
+VALUES (5, 0, 'deptLeader', '部门管理岗', 5, '1', 0, 1, '2023-10-01 10:33:39', 1, '2023-10-01 10:33:39',
+        '部门负责人岗位');
+
+INSERT INTO sys_role (role_id, tenant_id, role_name, role_key, role_sort, data_scope, menu_check_strictly,
+                      dept_check_strictly, status, version, del_flag, create_by, create_time, update_by, update_time,
+                      remark)
+VALUES (1, 0, '超级管理员角色', 'superAdmin', 1, '1', true, true, '1', 0, 0, 1, '2023-06-03 21:32:28', 1, NULL,
+        '超级管理员');
+INSERT INTO sys_role (role_id, tenant_id, role_name, role_key, role_sort, data_scope, menu_check_strictly,
+                      dept_check_strictly, status, version, del_flag, create_by, create_time, update_by, update_time,
+                      remark)
+VALUES (165323792564117504, 0, 'redst', 'erer', 1, '1', true, true, '1', 3, 0, 1, '2024-07-01 17:58:43.716', 1,
+        '2024-07-01 18:07:56.137', NULL);
+
+INSERT INTO sys_tenant (tenant_id, contact_user_name, contact_phone, company_name, license_number, address, intro,
+                        domain, remark, package_id, expire_time, account_count, status, version, del_flag, create_by,
+                        create_time, update_by, update_time)
+VALUES (0, '联系人', '18888888888', 'eco', NULL, NULL, '多租户通用后台管理管理系统', NULL, NULL, NULL, NULL, -1, '1', 0,
+        0, 1, '2023-08-13 08:08:08', NULL, NULL);
+
+
+INSERT INTO sys_user (user_id, tenant_id, dept_id, user_name, nick_name, user_type, email, phonenumber, gender, avatar,
+                      password, status, version, del_flag, login_ip, login_date, create_by, create_time, update_by,
+                      update_time, remark)
+VALUES (1, 0, 1, 'superadmin', '超级管理员', 'sys_user', 'eco@eco.com', '15888888888', '1', NULL,
+        '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '1', 0, 0, '0:0:0:0:0:0:0:1',
+        '2023-12-18 10:57:01', 1, '2023-06-03 21:32:28', 1, '2023-12-18 10:57:01', '管理员');
+