74 Commits

Author SHA1 Message Date
valarchie
4e9ab30d68 Merge pull request #81 from BruceBlink/dev
更新junit单元测试的相关依赖
2025-06-04 20:26:41 +08:00
valarchie
454bdd44bc Merge pull request #80 from BruceBlink/main
增加Github Actions的CI/CD配置
2025-06-04 20:24:11 +08:00
likanug
2fa20aaaf3 更新junit的相关依赖及版本,修复admin模块中maven test批量跑单元测试时报错的问题 2025-06-04 20:09:26 +08:00
likanug
d017e2bb64 更新AgileBootConfigTest单元测试 2025-06-04 19:08:03 +08:00
likanug
e2f398b794 Revert "添加发布release的GitHub Actions配置"
This reverts commit 9fbc14c171.
2025-06-04 18:30:50 +08:00
likanug
664d845ea4 Revert "增加GitHub打包配置"
This reverts commit 5b3809abd9.
2025-06-04 18:30:18 +08:00
likanug
5b3809abd9 增加GitHub打包配置 2025-06-04 17:55:54 +08:00
likanug
9fbc14c171 添加发布release的GitHub Actions配置 2025-06-04 17:45:56 +08:00
likanug
bc1b97f720 删除更新依赖图的配置 2025-06-04 17:31:27 +08:00
likanug
f5c6125d74 修复Java 17更新依赖图时报错的问题 2025-06-04 17:18:47 +08:00
likanug
4ed71fdf5d 删除构建完成后的slack通知配置 2025-06-04 17:08:28 +08:00
likanug
ab3bcda857 修复发送构建通知失败的问题 2025-06-04 17:03:24 +08:00
likanug
68575d141c 修复Missing download info for actions/cache@v2的问题 2025-06-04 16:56:46 +08:00
likanug
dd535bfa50 增加Java 8的构建配置 2025-06-04 16:53:25 +08:00
likanug
47394d92ae 修复更新“依赖图”错误的问题 2025-06-04 16:52:18 +08:00
likanug
2644ed4368 更新actions/upload-artifact为v4 2025-06-04 16:41:30 +08:00
likanug
c09c7e4ca8 增加GitHub Actions的CI/CD配置 2025-06-04 16:38:06 +08:00
valarchie
ce83324c44 Merge pull request #79 from BruceBlink/main
更新Lombok版本,修复在JDK21下,代码编译报错的问题
更新h2的sql脚本以及增加h2的MySQL语法兼容设置,修复test模式下项目启动报错的问题
2025-05-07 16:15:16 +08:00
likanug
9ad9895510 Revert "删除无用的pom依赖"
This reverts commit f489ef45fd.
2025-05-07 15:49:06 +08:00
likanug
f489ef45fd 删除无用的pom依赖 2025-05-07 12:10:18 +08:00
likanug
f1b3ca650d 更新h2的sql脚本以及增加h2的MySQL语法兼容设置,修复test模式下项目启动报错的问题 2025-05-07 12:07:33 +08:00
likanug
42bf932d86 更新Lombok版本,修复在JDK21下,代码编译报错的问题 2025-05-07 11:13:04 +08:00
valarchie
1ccbfa2881 Merge pull request #77 from gongxuanzhang/main
Util classes should have private constructors
2024-12-31 14:26:28 +08:00
Xuan-Zhang Gong
6e4155a146 Util classes should have private constructors 2024-11-18 14:11:20 +08:00
valarchie
0bc4148a34 Merge pull request #75 from 1065700104/develop
fix(DeptModel): 修复父级部门为null时NPE的bug
2024-09-12 16:06:49 +08:00
李嘉伟
6a4245f541 feat(DeptModel): 修复父级部门为null时NPE的bug 2024-09-04 17:05:42 +08:00
valarchie
660dfa6a1e Update README.md 2024-05-29 08:29:38 +08:00
valarchie
62f81adc74 Merge pull request #71 from deepbreath/main
update:更新 pgsql 表
2024-04-09 17:14:24 +08:00
Yuchen
21ed5ef781 update:更新 pgsql 表 2024-04-09 17:09:06 +08:00
valarchie
073cda31e8 Merge pull request #70 from habyss/main
fix: xxxQuery放到对应目录
2024-04-03 17:06:20 +08:00
hankun
a845cf66ce fix: xxxQuery放到对应目录 2024-04-03 13:35:17 +08:00
valarchie
d2eb733ab3 Merge pull request #61 from aniyayee/main
fix: 删除角色时将操作类型更正为DELETE
2023-11-13 16:07:28 +08:00
yayee
f09c1fa47f fix: 删除角色时将操作类型更正为DELETE 2023-11-13 15:57:41 +08:00
valarchie
4716b3c977 Merge pull request #60 from burningimlam/main
fix: 分页查询时可能出现的NPE
2023-11-08 19:32:42 +08:00
imlam
aa2de6a6f2 fix: 分页查询时可能出现的NPE 2023-11-08 19:02:57 +08:00
valarchie
e9df8f01a1 Merge remote-tracking branch 'origin/main' 2023-10-12 16:09:24 +08:00
valarchie
9793f97613 fix: 修复缓存问题 2023-10-12 16:09:10 +08:00
valarchie
ea6117cf4e Merge pull request #56 from qcxy/main
修改引入包注释
2023-10-12 09:49:49 +08:00
gzy
a8afdce2fa 修改引入包注释 2023-10-12 09:36:21 +08:00
valarchie
7b78527e6d Merge pull request #55 from qcxy/main
去掉多余的两个引入的包
2023-10-12 09:35:37 +08:00
gzy
5a20edaff8 去掉多余的两个引入的包
结构变为common->infrastructure->domain->admin
2023-10-12 09:30:40 +08:00
valarchie
c054f3e3e8 Merge pull request #54 from gyzhang/fix_by_kevin_20231004
fix: 修改“岗位管理”-查询功能中的1-默认排序为数据库中的post_sort,2-设置漏掉的前端查询条件“创建时间”对应的字段cre…
2023-10-06 22:11:58 +08:00
Kevin Zhang
1ba6a55e93 fix: 代码异动位置:“岗位管理”-查询功能中的1-默认排序为数据库中的post_sort,2-设置漏掉的前端查询条件“创建时间”对应的字段 2023-10-06 15:30:29 +08:00
Kevin Zhang
72cde4c5cf fix: 修改“岗位管理”-查询功能中的1-默认排序为数据库中的post_sort,2-设置漏掉的前端查询条件“创建时间”对应的字段create_time 2023-10-04 23:40:14 +08:00
valarchie
050905fbc0 Merge pull request #53 from gyzhang/fix_by_kevin_20231003
fix: 修改“岗位管理”-删除-按钮功能错误:前端传递参数和后端不匹配,参照操作日志的删除功能做了修改。
2023-10-03 18:14:28 +08:00
Kevin Zhang
135a135d0f fix: 修改“岗位管理”-删除-按钮功能错误:前端传递参数和后端不匹配,参照操作日志的删除功能做了修改。 2023-10-03 16:39:30 +08:00
valarchie
0c4f58fd23 Merge pull request #52 from gyzhang/fix_by_kevin_20231002
fix: 修改“岗位管理”-全部导出-按钮功能错误:请求类型修改为get,请求路径修改为/excel,重新提供方法返回不分页的查询结果。
2023-10-02 18:38:22 +08:00
Kevin Zhang
a6344a2662 fix: 修改“岗位管理”-全部导出-按钮功能错误:请求类型修改为get,请求路径修改为/excel,重新提供方法返回不分页的查询结果。 2023-10-02 16:53:18 +08:00
Kevin Zhang
9527c95734 fix: 修改“岗位管理”-全部导出-按钮功能错误:请求类型修改为get,请求路径修改为/excel,重新提供方法返回不分页的查询结果。 2023-10-02 16:44:54 +08:00
valarchie
fcf41c68da Merge pull request #51 from penbox/main
fix: AddRoleCommand 中的 roleSort 约束为 @NotBlank,导致新增角色报错
2023-09-22 16:50:18 +08:00
penbox
c7436ec289 Merge branch 'main' into main 2023-09-22 16:45:36 +08:00
penbox86@126.com
90f80a7d27 fix: AddRoleCommand 中的 roleSort 约束为 @NotBlank,导致新增角色报错 2023-09-22 16:39:16 +08:00
valarchie
4aeafb8ab1 Merge pull request #47 from wunaidouzi/fixed-20230914
fixed: roleSort使用NotBlank导致无法update
2023-09-14 19:20:13 +08:00
LiuZhiYun
d8093fffe9 fixed: roleSort使用NotBlank导致无法update 2023-09-14 18:35:18 +08:00
valarchie
33ce250371 Merge pull request #45 from penbox/main
fix:移除 selectMenuListByUserId 中无效的排序字段
2023-09-07 10:36:19 +08:00
penbox86@126.com
88841b7ed0 fix:移除 selectMenuListByUserId 中无效的排序字段 2023-09-07 10:13:08 +08:00
valarchie
1a93fe4d95 refactor: 更新readMe 2023-08-16 18:52:54 +08:00
valarchie
251db3a146 refactor: 更新readMe 2023-08-15 11:01:19 +08:00
valarchie
18cba6b975 refactor: 更新gitignore 2023-08-15 09:53:44 +08:00
valarchie
a6792705ba refactor: 去除NonNull注解 2023-08-15 09:42:58 +08:00
valarchie
02fb771994 refactor: 修改Readme 2023-08-15 08:50:53 +08:00
valarchie
6ebea15fb3 refactor: 添加初始化sql文件 2023-08-15 08:40:08 +08:00
valarchie
76f1ddc9fe refactor: 修改ReadMe 2023-08-15 08:38:54 +08:00
valarchie
198b0856af refactor: 修改ReadMe 2023-08-15 08:32:07 +08:00
valarchie
0ab467dc6c Merge branch 'For-Pure'
# Conflicts:
#	agileboot-common/src/main/java/com/agileboot/common/enums/BasicEnumUtil.java
#	agileboot-common/src/test/java/com/agileboot/common/enums/BasicEnumUtilTest.java
2023-08-15 08:22:36 +08:00
valarchie
3b091cbd4a Merge pull request #43 from daniyyer/exportExcel
Update CustomExcelUtil.java
2023-07-20 16:34:36 +08:00
daniyyer
df4996096c Update CustomExcelUtil.java
ExcelUtil.getWriter()默认创建xls格式的Excel,因此写出到客户端也需要自定义文件名为XXX.xls,现在配套的前端代码中设置的文件扩展名为xlsx,导出后打开会出现文件损坏的提示。改为ExcelUtil.getWriter(true)后,可生成xlsx格式的文件。
2023-07-20 16:06:38 +08:00
valarchie
fb40f307b9 Update README.md 2023-07-14 16:03:29 +08:00
valarchie
2e435497b9 Update README.md 2023-07-14 16:02:46 +08:00
valarchie
bcc9d7c757 Merge pull request #39 from TheLastSunset/mvnw
feat: add maven wrapper
2023-07-13 16:07:08 +08:00
valarchie
8d214bc4d1 Merge pull request #40 from TheLastSunset/optimize
refactor: optimize BasicEnumUtil
2023-07-13 15:41:29 +08:00
TheLastSunset
7bb6d625e4 refactor: optimize BasicEnumUtil 2023-07-13 14:11:40 +08:00
TheLastSunset
88e22c270d feat: add mvnw execute permission 2023-07-12 08:40:48 +00:00
TheLastSunset
37e297626b feat: add maven wrapper 2023-07-12 10:58:12 +08:00
77 changed files with 1290 additions and 1626 deletions

116
.github/workflows/ci-cd.yml vendored Normal file
View File

@@ -0,0 +1,116 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# 权限声明,确保 workflow 有权限写 checks 和 security-events
permissions:
contents: read
checks: write
security-events: write
name: Java CI with Maven
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '.gitattributes'
- 'picture'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java-version: ['8', '17', '21']
fail-fast: false
name: Build with Java ${{ matrix.java-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'maven'
# 优化Maven本地仓库缓存策略
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}
restore-keys: |
${{ runner.os }}-m2-
# 编译和测试去掉failOnWarning避免因为警告导致失败
- name: Build and Test with Maven
run: |
mvn -B verify --file pom.xml -Dmaven.test.failure.ignore=false -Dgpg.skip -Dmaven.javadoc.skip=false
env:
MAVEN_OPTS: -Xmx4g -XX:MaxMetaspaceSize=1g
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'
detailed_summary: true
include_passed: true
fail_on_failure: true
- name: Run SonarQube Analysis
if: matrix.java-version == '17' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
continue-on-error: true
run: |
if [[ ! -z "${{ secrets.SONAR_TOKEN }}" ]]; then
mvn sonar:sonar \
-Dsonar.projectKey=agileboot \
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION || 'default' }} \
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL || 'https://sonarcloud.io' }} \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.java.source=${{ matrix.java-version }}
else
echo "Skipping SonarQube analysis - SONAR_TOKEN not configured"
fi
# 上传构建产物if-no-files-found 改为 warn
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: agileboot-artifacts-java-${{ matrix.java-version }}
path: |
**/target/*.jar
!**/target/original-*.jar
retention-days: 5
if-no-files-found: warn
# # 只在 Java 17 版本上更新依赖图权限和token已修复
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@v4
# if: matrix.java-version == '17' && success()
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# # 发送构建状态通知
# - name: Notify Build Status
# if: always()
# uses: rtCamp/action-slack-notify@v2.2.1
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK || '' }}
# SLACK_CHANNEL: build-notifications
# SLACK_COLOR: ${{ job.status }}
# SLACK_TITLE: Build Status for Java ${{ matrix.java-version }}
# SLACK_MESSAGE: 'Build ${{ job.status }} on Java ${{ matrix.java-version }}'

6
.gitignore vendored
View File

@@ -45,6 +45,6 @@ nbdist/
!*/build/*.java
!*/build/*.html
!*/build/*.xml
/agileboot-admin/src/main/resources/application-dev.yml
/agileboot-infrastructure/src/main/resources/application-prod.yml
/agileboot-infrastructure/src/main/resources/logback-prod.xml
/agileboot-admin/src/main/resources/application-prod.yml

BIN
.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.

18
.mvn/wrapper/maven-wrapper.properties vendored Normal file
View File

@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

View File

@@ -15,8 +15,7 @@
<img alt="logo" height="200" src="https://oscimg.oschina.net/oscnet/up-eda2a402cc061f1f5f40d9ac4c084f4c98c.png">
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">AgileBoot v1.8.0</h1>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">AgileBoot v2.0.0 </h1>
<h4 align="center">基于SpringBoot+Vue3前后端分离的Java快速开发脚手架</h4>
<p align="center">
</p>
@@ -27,7 +26,8 @@ AgileBoot是一套开源的全栈精简快速开发平台毫无保留给个
适合个人开发者的小型项目或者公司内部项目使用。也可作为供初学者学习使用的案例。
* 前端采用Vue3、Element Plus。对应前端仓库 [AgileBoot-Front-End](https://github.com/valarchie/AgileBoot-Front-End) ,保持同步更新
* 前端是基于优秀的开源项目[Pure-Admin](https://github.com/pure-admin/vue-pure-admin)开发而成。在此感谢Pure-Admin作者
* 前端采用Vue3、Element Plus、TypeScript、Pinia。对应前端仓库 [AgileBoot-Front-End](https://github.com/valarchie/AgileBoot-Front-End) ,保持同步更新。
* 后端采用Spring Boot、Spring Security & Jwt、Redis & MySql、Mybatis Plus、Hutool工具包。
* 权限认证使用Jwt支持多终端认证系统。
* 支持注解式主从数据库切换,注解式请求限流,注解式重复请求拦截。
@@ -35,6 +35,9 @@ AgileBoot是一套开源的全栈精简快速开发平台毫无保留给个
* 支持加载动态权限菜单,实时权限控制。
* ***有大量的单元测试,集成测试覆盖确保业务逻辑正确***。
***V1.0.0版本使用JS开发V2.0.0版本使用TS开发***。
***V1.0.0地址:[后端(AgileBoot-Back-End-Basic)](https://github.com/valarchie/AgileBoot-Back-End-Basic) - [前端(AgileBoot-Front-End-Basic)](https://github.com/valarchie/AgileBoot-Front-End-Basic)***
> 有任何问题或者建议,可以在 _Issues_ 中提给作者。
>
> 您的Issue比Star更重要
@@ -148,9 +151,9 @@ git clone https://github.com/valarchie/AgileBoot-Front-End
#### 后端启动
```
1. 生成所需的数据库表
找到后端项目根目录下的sql目录中的agileboot_xxxxx.sql脚本文件。 导入到你新建的数据库中。
找到后端项目根目录下的sql目录中的agileboot_xxxxx.sql脚本文件(取最新的sql文件)。 导入到你新建的数据库中。
2. 在infrastructure模块底下找到resource目录下的application-dev.yml文件
2. 在admin模块底下找到resource目录下的application-dev.yml文件
配置数据库以及Redis的 地址、端口、账号密码
3. 在根目录执行mvn install
@@ -168,16 +171,18 @@ git clone https://github.com/valarchie/AgileBoot-Front-End
```
#### 前端启动
```
1. npm install
详细步骤请查看对应前端部分
2. npm run dev
```
1. pnpm install
2. pnpm run dev
3. 当出现以下字样时即为启动成功
vite v2.6.14 dev server running at:
> Local: http://127.0.0.1:3000/
> Local: http://127.0.0.1:80/
ready in 4376ms.
@@ -232,8 +237,6 @@ agileboot.embedded.redis: true
| | 连接池监视 | 监视当前系统数据库连接池状态可进行分析SQL找出系统性能瓶颈 |
目前版本是V1.8.0将在2.0版本后陆续新增新功能。
## 🐯 工程结构 🐯
```
@@ -244,25 +247,20 @@ agileboot
├── agileboot-common -- 精简基础工具模块
├── agileboot-infrastructure -- 基础设施模块(主要是配置和集成)
├── agileboot-infrastructure -- 基础设施模块(主要是配置和集成,不包含业务逻辑
├── agileboot-domain -- 业务模块
├ ├── user -- 用户模块(举例)
├ ├── command -- 命令参数接收模型(命令)
├ ├── dto -- 返回数据类
├ ├── db -- DB操作类
├ ├── entity -- 实体类
├ ├── service -- DB Service
├ ├── mapper -- DB Dao
├ ├── model -- 领域模型类
├ ├── query -- 查询参数模型(查询)
│ ├────── UserApplicationService -- 应用服务(事务层,操作领域模型类完成业务逻辑)
├── agileboot-integration-test -- 集成测试模块
├── agileboot-orm -- 数据映射模块(仅包含数据相关逻辑)
├ ├── entiy -- 实体类
├ ├── enums -- 数据相关枚举
├ ├── mapper -- DAO
├ ├── query -- 封装查询对象
├ ├── result -- 封装多表查询对象
└── └── service -- 服务层
```
### 代码流转
@@ -286,11 +284,16 @@ agileboot
│ ├── member -- 会员模块
├── agileboot-domain --
├ ├── member -- 会员模块
── agileboot-orm --
├── member -- 会员模块
├ ├── member -- 会员模块(举例)
├ ├── command -- 命令参数接收模型(命令)
├── dto -- 返回数据类
├── db -- DB操作类
├ ├── entity -- 实体类
├ ├── service -- DB Service
├ ├── mapper -- DB Dao
├ ├── model -- 领域模型类
├ ├── query -- 查询参数模型(查询)
│ ├────── MemberApplicationService -- 应用服务(事务层,操作领域模型类完成业务逻辑)
└─
```
@@ -315,11 +318,12 @@ agileboot
- 请导入统一的代码格式化模板Google: Settings > Editor > Code Style > Java > 设置按钮 > import schema > 选择项目根目录下的GoogleStyle.xml文件
- 如需要生成新的表请使用CodeGenerator类进行生成。
- 填入数据库地址,账号密码,库名。然后填入所需的表名执行代码即可。(大概看一下代码就知道怎么填啦)
- 生成的类在orm模块下的target/classes目录下
- 生成的类在infrastructure模块下的target/classes目录下
- 不同的数据库keywordsHandler方法请填入对应不同数据库handler。搜索keywordsHandler关键字
- 项目基础环境搭建请参考docker目录下的指南搭建。保姆级启动说明
- [AgileBoot - 手把手一步一步带你Run起全栈项目(SpringBoot+Vue3)](https://juejin.cn/post/7153812187834744845)
- 注意管理后台的后端启动类是AgileBoot**Admin**Application
- Swagger的API地址为 http://localhost:8080/v3/api-docs
## 🎬 AgileBoot全栈交流群 🎬

View File

@@ -18,12 +18,6 @@
<dependencies>
<!-- 核心模块-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-infrastructure</artifactId>
</dependency>
<!-- 业务领域 -->
<dependency>
<groupId>com.agileboot</groupId>
@@ -61,6 +55,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<!-- 想跑test的话 设置成false -->
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
</plugins>
</build>

View File

@@ -24,7 +24,6 @@ import com.agileboot.admin.customize.service.login.LoginService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

View File

@@ -13,7 +13,6 @@ import com.agileboot.common.enums.common.BusinessTypeEnum;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;

View File

@@ -14,7 +14,6 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;

View File

@@ -14,7 +14,6 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;

View File

@@ -10,7 +10,7 @@ import com.agileboot.domain.system.log.LogApplicationService;
import com.agileboot.domain.system.log.dto.LoginLogDTO;
import com.agileboot.domain.system.log.query.LoginLogQuery;
import com.agileboot.domain.system.log.dto.OperationLogDTO;
import com.agileboot.domain.system.log.dto.OperationLogQuery;
import com.agileboot.domain.system.log.query.OperationLogQuery;
import com.agileboot.admin.customize.aop.accessLog.AccessLog;
import com.agileboot.common.enums.common.BusinessTypeEnum;
import io.swagger.v3.oas.annotations.Operation;

View File

@@ -18,7 +18,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;

View File

@@ -19,7 +19,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;

View File

@@ -1,8 +1,10 @@
package com.agileboot.admin.controller.system;
import com.agileboot.admin.customize.aop.accessLog.AccessLog;
import com.agileboot.common.core.base.BaseController;
import com.agileboot.common.core.dto.ResponseDTO;
import com.agileboot.common.core.page.PageDTO;
import com.agileboot.common.enums.common.BusinessTypeEnum;
import com.agileboot.common.utils.poi.CustomExcelUtil;
import com.agileboot.domain.common.command.BulkOperationCommand;
import com.agileboot.domain.system.post.PostApplicationService;
@@ -10,13 +12,12 @@ import com.agileboot.domain.system.post.command.AddPostCommand;
import com.agileboot.domain.system.post.command.UpdatePostCommand;
import com.agileboot.domain.system.post.dto.PostDTO;
import com.agileboot.domain.system.post.query.PostQuery;
import com.agileboot.admin.customize.aop.accessLog.AccessLog;
import com.agileboot.common.enums.common.BusinessTypeEnum;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import lombok.NonNull;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@@ -27,6 +28,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
@@ -54,13 +56,20 @@ public class SysPostController extends BaseController {
return ResponseDTO.ok(pageDTO);
}
/**
* 导出查询到的所有岗位信息到excel文件
* @param response http响应
* @param query 查询参数
* @author Kevin Zhang
* @date 2023-10-02
*/
@Operation(summary = "职位列表导出")
@AccessLog(title = "岗位管理", businessType = BusinessTypeEnum.EXPORT)
@PreAuthorize("@permission.has('system:post:export')")
@PostMapping("/export")
@GetMapping("/excel")
public void export(HttpServletResponse response, PostQuery query) {
PageDTO<PostDTO> pageDTO = postApplicationService.getPostList(query);
CustomExcelUtil.writeToResponse(pageDTO.getRows(), PostDTO.class, response);
List<PostDTO> all = postApplicationService.getPostListAll(query);
CustomExcelUtil.writeToResponse(all, PostDTO.class, response);
}
/**
@@ -104,9 +113,9 @@ public class SysPostController extends BaseController {
@Operation(summary = "删除职位")
@PreAuthorize("@permission.has('system:post:remove')")
@AccessLog(title = "岗位管理", businessType = BusinessTypeEnum.DELETE)
@DeleteMapping("/{postIds}")
public ResponseDTO<Void> remove(@PathVariable List<Long> postIds) {
postApplicationService.deletePost(new BulkOperationCommand<>(postIds));
@DeleteMapping
public ResponseDTO<Void> remove(@RequestParam @NotNull @NotEmpty List<Long> ids) {
postApplicationService.deletePost(new BulkOperationCommand<>(ids));
return ResponseDTO.ok();
}

View File

@@ -18,7 +18,6 @@ import com.agileboot.infrastructure.user.web.SystemLoginUser;
import com.agileboot.common.enums.common.BusinessTypeEnum;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

View File

@@ -21,7 +21,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotNull;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@@ -93,7 +92,7 @@ public class SysRoleController extends BaseController {
*/
@Operation(summary = "删除角色")
@PreAuthorize("@permission.has('system:role:remove')")
@AccessLog(title = "角色管理", businessType = BusinessTypeEnum.ADD)
@AccessLog(title = "角色管理", businessType = BusinessTypeEnum.DELETE)
@DeleteMapping(value = "/{roleId}")
public ResponseDTO<Void> remove(@PathVariable("roleId") List<Long> roleIds) {
roleApplicationService.deleteRoleByBulk(roleIds);

View File

@@ -23,7 +23,6 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;

View File

@@ -8,7 +8,6 @@ import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

View File

@@ -12,7 +12,6 @@ import com.agileboot.infrastructure.thread.ThreadPoolManager;
import com.agileboot.infrastructure.user.web.SystemLoginUser;
import com.agileboot.admin.customize.service.login.TokenService;
import com.agileboot.common.enums.common.LoginStatusEnum;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -32,7 +32,6 @@ import com.agileboot.domain.system.user.db.SysUserEntity;
import com.google.code.kaptcha.Producer;
import java.awt.image.BufferedImage;
import javax.annotation.Resource;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.AuthenticationManager;

View File

@@ -18,7 +18,6 @@ import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.servlet.http.HttpServletRequest;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -22,7 +22,6 @@ import java.util.Objects;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.SetUtils;

View File

@@ -8,7 +8,6 @@ import com.agileboot.infrastructure.user.web.SystemLoginUser;
import com.agileboot.domain.system.user.db.SysUserEntity;
import com.agileboot.domain.system.user.db.SysUserService;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -10,7 +10,7 @@ spring:
datasource:
master:
# h2 内存数据库 内存模式连接配置 库名: agileboot
url: jdbc:h2:mem:agileboot;DB_CLOSE_DELAY=-1
url: jdbc:h2:mem:agileboot;DB_CLOSE_DELAY=-1;MODE=MySQL
h2:
# 开启console 访问 默认false
console:

View File

@@ -24,9 +24,9 @@ public class AgileBootConfigTest {
String fileBaseDir = "D:\\agileboot\\profile";
Assertions.assertEquals("AgileBoot", config.getName());
Assertions.assertEquals("1.0.0", config.getVersion());
Assertions.assertEquals("1.8.0", config.getVersion());
Assertions.assertEquals("2022", config.getCopyrightYear());
Assertions.assertTrue(config.isDemoEnabled());
Assertions.assertFalse(config.isDemoEnabled());
Assertions.assertEquals(fileBaseDir, AgileBootConfig.getFileBaseDir());
Assertions.assertFalse(AgileBootConfig.isAddressEnabled());
Assertions.assertEquals("math", AgileBootConfig.getCaptchaType());

View File

@@ -5,7 +5,6 @@ import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode.Client;
import com.agileboot.common.utils.ServletHolderUtil;
import com.agileboot.common.utils.jackson.JacksonUtil;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -15,7 +15,6 @@ import io.jsonwebtoken.UnsupportedJwtException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -141,11 +141,6 @@
<artifactId>ip2region</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
</dependency>
<dependency>
<groupId>it.ozimov</groupId>
<artifactId>embedded-redis</artifactId>

View File

@@ -1,11 +1,11 @@
package com.agileboot.common.core.page;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import javax.validation.constraints.Max;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.Max;
/**
* @author valarchie
*/
@@ -13,15 +13,31 @@ import javax.validation.constraints.Max;
@Data
public abstract class AbstractPageQuery<T> extends AbstractQuery<T> {
/**
* 最大分页页数
*/
public static final int MAX_PAGE_NUM = 200;
/**
* 单页最大大小
*/
public static final int MAX_PAGE_SIZE = 500;
/**
* 默认分页页数
*/
public static final int DEFAULT_PAGE_NUM = 1;
/**
* 默认分页大小
*/
public static final int DEFAULT_PAGE_SIZE = 10;
@Max(MAX_PAGE_NUM)
protected Integer pageNum = 1;
protected Integer pageNum;
@Max(MAX_PAGE_SIZE)
protected Integer pageSize = 10;
protected Integer pageSize;
public Page<T> toPage() {
pageNum = ObjectUtil.defaultIfNull(pageNum, DEFAULT_PAGE_NUM);
pageSize = ObjectUtil.defaultIfNull(pageSize, DEFAULT_PAGE_SIZE);
return new Page<>(pageNum, pageSize);
}

View File

@@ -82,6 +82,10 @@ public class JacksonUtil {
}
}
private JacksonUtil() {
throw new IllegalStateException("Utility class JacksonUtil can not be instantiated");
}
public static ObjectMapper initMapper() {
JsonMapper.Builder builder = JsonMapper.builder()
.enable(JSON_READ_FEATURES_ENABLED.toArray(new JsonReadFeature[0]));

View File

@@ -48,7 +48,7 @@ public class CustomExcelUtil {
public static <T> void writeToOutputStream(List<T> list, Class<T> clazz, OutputStream outputStream) {
// 通过工具类创建writer
ExcelWriter writer = ExcelUtil.getWriter();
ExcelWriter writer = ExcelUtil.getWriter(true);
ExcelSheet sheetAnno = clazz.getAnnotation(ExcelSheet.class);

View File

@@ -18,12 +18,6 @@
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-common</artifactId>
</dependency>
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-infrastructure</artifactId>

View File

@@ -5,7 +5,6 @@ import com.agileboot.infrastructure.cache.guava.AbstractGuavaCacheTemplate;
import com.agileboot.domain.system.dept.db.SysDeptEntity;
import com.agileboot.domain.system.config.db.SysConfigService;
import com.agileboot.domain.system.dept.db.SysDeptService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

View File

@@ -13,7 +13,6 @@ import com.agileboot.domain.system.role.db.SysRoleService;
import com.agileboot.domain.system.user.db.SysUserService;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -12,7 +12,6 @@ import com.agileboot.domain.system.config.db.SysConfigService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -4,7 +4,6 @@ import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode;
import com.agileboot.domain.system.config.db.SysConfigEntity;
import com.agileboot.domain.system.config.db.SysConfigService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -13,7 +13,6 @@ import com.agileboot.domain.system.dept.db.SysDeptService;
import com.agileboot.domain.system.role.db.SysRoleService;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -4,7 +4,6 @@ import com.agileboot.domain.system.user.db.SysUserEntity;
import com.agileboot.domain.system.user.db.SysUserMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -71,19 +71,24 @@ public class DeptModel extends SysDeptEntity {
}
public void generateAncestors() {
if (getParentId() == 0) {
setAncestors(getParentId().toString());
// 处理 getParentId 可能为 null 的情况
if (getParentId() == null || getParentId() == 0) {
setAncestors(String.valueOf(getParentId() == null ? 0 : getParentId()));
return;
}
SysDeptEntity parentDept = deptService.getById(getParentId());
// 检查 parentDept 是否为 null 或者状态为禁用
if (parentDept == null || StatusEnum.DISABLE.equals(
BasicEnumUtil.fromValue(StatusEnum.class, parentDept.getStatus()))) {
throw new ApiException(ErrorCode.Business.DEPT_PARENT_DEPT_NO_EXIST_OR_DISABLED);
}
setAncestors(parentDept.getAncestors() + "," + getParentId());
// 处理 parentDept.getAncestors() 可能为 null 的情况
String ancestors = parentDept.getAncestors() == null ? "" : parentDept.getAncestors();
setAncestors(ancestors + "," + getParentId());
}

View File

@@ -5,7 +5,6 @@ import com.agileboot.common.exception.error.ErrorCode;
import com.agileboot.domain.system.dept.command.AddDeptCommand;
import com.agileboot.domain.system.dept.db.SysDeptEntity;
import com.agileboot.domain.system.dept.db.SysDeptService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -5,7 +5,7 @@ import com.agileboot.domain.common.command.BulkOperationCommand;
import com.agileboot.domain.system.log.dto.LoginLogDTO;
import com.agileboot.domain.system.log.query.LoginLogQuery;
import com.agileboot.domain.system.log.dto.OperationLogDTO;
import com.agileboot.domain.system.log.dto.OperationLogQuery;
import com.agileboot.domain.system.log.query.OperationLogQuery;
import com.agileboot.domain.system.log.db.SysLoginInfoEntity;
import com.agileboot.domain.system.log.db.SysOperationLogEntity;
import com.agileboot.domain.system.log.db.SysLoginInfoService;
@@ -14,7 +14,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -1,4 +1,4 @@
package com.agileboot.domain.system.log.dto;
package com.agileboot.domain.system.log.query;
import cn.hutool.core.util.StrUtil;
import com.agileboot.common.core.page.AbstractPageQuery;

View File

@@ -20,7 +20,6 @@ import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -29,7 +29,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {
+ "WHERE u.user_id = #{userId} "
+ " AND m.status = 1 "
+ " AND m.deleted = 0 "
+ "ORDER BY m.parent_id, m.order_num")
+ "ORDER BY m.parent_id")
List<SysMenuEntity> selectMenuListByUserId(@Param("userId")Long userId);

View File

@@ -5,7 +5,6 @@ import com.agileboot.domain.system.role.db.SysRoleMenuMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -4,7 +4,6 @@ import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode;
import com.agileboot.domain.system.menu.db.SysMenuEntity;
import com.agileboot.domain.system.menu.db.SysMenuService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -17,7 +17,6 @@ import java.util.Objects;
import java.util.Properties;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.data.redis.connection.RedisServerCommands;
import org.springframework.data.redis.core.RedisCallback;

View File

@@ -13,7 +13,6 @@ import com.agileboot.domain.system.notice.db.SysNoticeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -4,7 +4,6 @@ import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode;
import com.agileboot.domain.system.notice.db.SysNoticeEntity;
import com.agileboot.domain.system.notice.db.SysNoticeService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -1,19 +1,19 @@
package com.agileboot.domain.system.post;
import cn.hutool.core.util.StrUtil;
import com.agileboot.common.core.page.PageDTO;
import com.agileboot.domain.common.command.BulkOperationCommand;
import com.agileboot.domain.system.post.command.AddPostCommand;
import com.agileboot.domain.system.post.command.UpdatePostCommand;
import com.agileboot.domain.system.post.db.SysPostEntity;
import com.agileboot.domain.system.post.db.SysPostService;
import com.agileboot.domain.system.post.dto.PostDTO;
import com.agileboot.domain.system.post.model.PostModel;
import com.agileboot.domain.system.post.model.PostModelFactory;
import com.agileboot.domain.system.post.query.PostQuery;
import com.agileboot.domain.system.post.db.SysPostEntity;
import com.agileboot.domain.system.post.db.SysPostService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
@@ -34,6 +34,19 @@ public class PostApplicationService {
return new PageDTO<>(records, page.getTotal());
}
/**
* 查询满足条件的所有岗位,不分页
* @param query 查询条件
* @return 满足查询条件的岗位列表
* @author Kevin Zhang
* @date 2023-10-02
*/
public List<PostDTO> getPostListAll(PostQuery query) {
List<SysPostEntity> all = postService.list(query.toQueryWrapper());
List<PostDTO> records = all.stream().map(PostDTO::new).collect(Collectors.toList());
return records;
}
public PostDTO getPostInfo(Long postId) {
SysPostEntity byId = postService.getById(postId);
return new PostDTO(byId);

View File

@@ -4,7 +4,6 @@ import com.agileboot.domain.system.user.db.SysUserEntity;
import com.agileboot.domain.system.user.db.SysUserMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -4,7 +4,6 @@ import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode.Business;
import com.agileboot.domain.system.post.db.SysPostEntity;
import com.agileboot.domain.system.post.db.SysPostService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -24,6 +24,11 @@ public class PostQuery extends AbstractPageQuery<SysPostEntity> {
.eq(status != null, "status", status)
.eq(StrUtil.isNotEmpty(postCode), "post_code", postCode)
.like(StrUtil.isNotEmpty(postName), "post_name", postName);
// 当前端没有选择排序字段时则使用post_sort字段升序排序在父类AbstractQuery中默认为升序
if (StrUtil.isEmpty(this.getOrderColumn())) {
this.setOrderColumn("post_sort");
}
this.setTimeRangeColumn("create_time");
return queryWrapper;
}

View File

@@ -26,7 +26,6 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -33,7 +33,7 @@ public class AddRoleCommand {
* 角色排序
*/
@ExcelColumn(name = "角色排序")
@NotBlank(message = "显示顺序不能为空")
@NotNull(message = "显示顺序不能为空")
private Integer roleSort;

View File

@@ -6,7 +6,6 @@ import com.agileboot.domain.system.user.db.SysUserMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -11,7 +11,6 @@ import com.agileboot.domain.system.role.db.SysRoleService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -32,7 +32,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -7,7 +7,6 @@ import com.agileboot.domain.system.post.model.PostModelFactory;
import com.agileboot.domain.system.role.model.RoleModelFactory;
import com.agileboot.domain.system.user.db.SysUserEntity;
import com.agileboot.domain.system.user.db.SysUserService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

View File

@@ -3,7 +3,6 @@ package com.agileboot.infrastructure.annotations.ratelimit;
import com.agileboot.infrastructure.annotations.ratelimit.implementation.MapRateLimitChecker;
import com.agileboot.infrastructure.annotations.ratelimit.implementation.RedisRateLimitChecker;
import java.lang.reflect.Method;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;

View File

@@ -4,7 +4,6 @@ import cn.hutool.core.collection.ListUtil;
import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode;
import com.agileboot.infrastructure.annotations.ratelimit.RateLimit;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.RedisTemplate;

View File

@@ -7,7 +7,6 @@ import com.agileboot.infrastructure.cache.RedisUtil;
import java.lang.reflect.Type;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;

View File

@@ -5,7 +5,6 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.data.redis.core.BoundSetOperations;
import org.springframework.data.redis.core.HashOperations;

View File

@@ -3,7 +3,6 @@ package com.agileboot.infrastructure.cache.aop;
import cn.hutool.core.util.StrUtil;
import com.agileboot.infrastructure.cache.RedisUtil;
import java.util.concurrent.Callable;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.Cache;
import org.springframework.cache.support.SimpleValueWrapper;

View File

@@ -50,12 +50,14 @@ public abstract class AbstractGuavaCacheTemplate<T> {
// 所有segment的初始总容量大小
.initialCapacity(128)
// 用于测试可任意改变当前时间。参考https://www.geek-share.com/detail/2689756248.html
.ticker(new Ticker() {
@Override
public long read() {
return 0;
}
})
// 大坑 设置ticket为0 会导致缓存不会失效 定时刷新也不会触发,因为距离上次刷新时刻(永远是0)不会超过refreshAfterWrite定义的间隔。
// 所以可以总结,这个Ticker直接返回0,会导致Cache的所有基于时间的过期和刷新策略都无法正常工作。Cache内容也不会按预期失效或刷新。
// .ticker(new Ticker() {
// @Override
// public long read() {
// return 0;
// }
// })
.build(new CacheLoader<String, Optional<T>>() {
@Override
public Optional<T> load(String key) {

View File

@@ -2,7 +2,6 @@ package com.agileboot.infrastructure.config;
import java.util.ArrayList;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.aop.Advisor;
import org.springframework.aop.aspectj.AspectJExpressionPointcut;

View File

@@ -49,68 +49,71 @@ INSERT INTO `sys_dept` VALUES ('10', '3', '0,1,3', '财务部门', '2', null, 'v
-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES ('1', '系统管理', '0', '1', 'system', null, '', '0', '1', '1', '1', '1', '', 'system', '0', '2022-05-21 08:30:54', null, null, '系统管理目录', '0');
INSERT INTO `sys_menu` VALUES ('2', '系统监控', '0', '2', 'monitor', null, '', '0', '1', '1', '1', '1', '', 'monitor', '0', '2022-05-21 08:30:54', null, null, '系统监控目录', '0');
INSERT INTO `sys_menu` VALUES ('3', '系统工具', '0', '3', 'tool', null, '', '0', '1', '1', '1', '1', '', 'tool', '0', '2022-05-21 08:30:54', null, null, '系统工具目录', '0');
INSERT INTO `sys_menu` VALUES ('4', 'AgileBoot官网', '0', '4', 'https://juejin.cn/column/7159946528827080734', null, '', '1', '1', '1', '1', '1', '', 'guide', '0', '2022-05-21 08:30:54', null, null, 'Agileboot官网地址', '0');
INSERT INTO `sys_menu` VALUES ('5', '用户管理', '1', '1', 'user', 'system/user/index', '', '0', '1', '2', '1', '1', 'system:user:list', 'user', '0', '2022-05-21 08:30:54', null, null, '用户管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('6', '角色管理', '1', '2', 'role', 'system/role/index', '', '0', '1', '2', '1', '1', 'system:role:list', 'peoples', '0', '2022-05-21 08:30:54', null, null, '角色管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('7', '菜单管理', '1', '3', 'menu', 'system/menu/index', '', '0', '1', '2', '1', '1', 'system:menu:list', 'tree-table', '0', '2022-05-21 08:30:54', null, null, '菜单管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('8', '部门管理', '1', '4', 'dept', 'system/dept/index', '', '0', '1', '2', '1', '1', 'system:dept:list', 'tree', '0', '2022-05-21 08:30:54', null, null, '部门管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('9', '岗位管理', '1', '5', 'post', 'system/post/index', '', '0', '1', '2', '1', '1', 'system:post:list', 'post', '0', '2022-05-21 08:30:54', null, null, '岗位管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('10', '参数设置', '1', '7', 'config', 'system/config/index', '', '0', '1', '2', '1', '1', 'system:config:list', 'edit', '0', '2022-05-21 08:30:54', null, null, '参数设置菜单', '0');
INSERT INTO `sys_menu` VALUES ('11', '通知公告', '1', '8', 'notice', 'system/notice/index', '', '0', '1', '2', '1', '1', 'system:notice:list', 'message', '0', '2022-05-21 08:30:54', null, null, '通知公告菜单', '0');
INSERT INTO `sys_menu` VALUES ('12', '日志管理', '1', '9', 'log', '', '', '0', '1', '1', '1', '1', '', 'log', '0', '2022-05-21 08:30:54', null, null, '日志管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('13', '在线用户', '2', '1', 'online', 'monitor/online/index', '', '0', '1', '2', '1', '1', 'monitor:online:list', 'online', '0', '2022-05-21 08:30:54', null, null, '在线用户菜单', '0');
INSERT INTO `sys_menu` VALUES ('14', '数据监控', '2', '3', 'druid', 'monitor/druid/index', '', '0', '1', '2', '1', '1', 'monitor:druid:list', 'druid', '0', '2022-05-21 08:30:54', null, null, '数据监控菜单', '0');
INSERT INTO `sys_menu` VALUES ('15', '服务监控', '2', '4', 'server', 'monitor/server/index', '', '0', '1', '2', '1', '1', 'monitor:server:list', 'server', '0', '2022-05-21 08:30:54', null, null, '服务监控菜单', '0');
INSERT INTO `sys_menu` VALUES ('16', '缓存监控', '2', '5', 'cache', 'monitor/cache/index', '', '0', '1', '2', '1', '1', 'monitor:cache:list', 'redis', '0', '2022-05-21 08:30:54', null, null, '缓存监控菜单', '0');
INSERT INTO `sys_menu` VALUES ('17', '系统接口', '3', '3', 'swagger', 'tool/swagger/index', '', '0', '1', '2', '1', '1', 'tool:swagger:list', 'swagger', '0', '2022-05-21 08:30:54', null, null, '系统接口菜单', '0');
INSERT INTO `sys_menu` VALUES ('18', '操作日志', '12', '1', 'operlog', 'monitor/operlog/index', '', '0', '1', '2', '1', '1', 'monitor:operlog:list', 'form', '0', '2022-05-21 08:30:54', null, null, '操作日志菜单', '0');
INSERT INTO `sys_menu` VALUES ('19', '登录日志', '12', '2', 'logininfor', 'monitor/logininfor/index', '', '0', '1', '2', '1', '1', 'monitor:logininfor:list', 'logininfor', '0', '2022-05-21 08:30:54', null, null, '登录日志菜单', '0');
INSERT INTO `sys_menu` VALUES ('20', '用户查询', '5', '1', '', '', '', '0', '1', '3', '1', '1', 'system:user:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('21', '用户新增', '5', '2', '', '', '', '0', '1', '3', '1', '1', 'system:user:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('22', '用户修改', '5', '3', '', '', '', '0', '1', '3', '1', '1', 'system:user:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('23', '用户删除', '5', '4', '', '', '', '0', '1', '3', '1', '1', 'system:user:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('24', '用户导出', '5', '5', '', '', '', '0', '1', '3', '1', '1', 'system:user:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('25', '用户导入', '5', '6', '', '', '', '0', '1', '3', '1', '1', 'system:user:import', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('26', '重置密码', '5', '7', '', '', '', '0', '1', '3', '1', '1', 'system:user:resetPwd', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('27', '角色查询', '6', '1', '', '', '', '0', '1', '3', '1', '1', 'system:role:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('28', '角色新增', '6', '2', '', '', '', '0', '1', '3', '1', '1', 'system:role:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('29', '角色修改', '6', '3', '', '', '', '0', '1', '3', '1', '1', 'system:role:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('30', '角色删除', '6', '4', '', '', '', '0', '1', '3', '1', '1', 'system:role:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('31', '角色导出', '6', '5', '', '', '', '0', '1', '3', '1', '1', 'system:role:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('32', '菜单查询', '7', '1', '', '', '', '0', '1', '3', '1', '1', 'system:menu:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('33', '菜单新增', '7', '2', '', '', '', '0', '1', '3', '1', '1', 'system:menu:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('34', '菜单修改', '7', '3', '', '', '', '0', '1', '3', '1', '1', 'system:menu:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('35', '菜单删除', '7', '4', '', '', '', '0', '1', '3', '1', '1', 'system:menu:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('36', '部门查询', '8', '1', '', '', '', '0', '1', '3', '1', '1', 'system:dept:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('37', '部门新增', '8', '2', '', '', '', '0', '1', '3', '1', '1', 'system:dept:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('38', '部门修改', '8', '3', '', '', '', '0', '1', '3', '1', '1', 'system:dept:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('39', '部门删除', '8', '4', '', '', '', '0', '1', '3', '1', '1', 'system:dept:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('40', '岗位查询', '9', '1', '', '', '', '0', '1', '3', '1', '1', 'system:post:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('41', '岗位新增', '9', '2', '', '', '', '0', '1', '3', '1', '1', 'system:post:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('42', '岗位修改', '9', '3', '', '', '', '0', '1', '3', '1', '1', 'system:post:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('43', '岗位删除', '9', '4', '', '', '', '0', '1', '3', '1', '1', 'system:post:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('44', '岗位导出', '9', '5', '', '', '', '0', '1', '3', '1', '1', 'system:post:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('45', '参数查询', '10', '1', '#', '', '', '0', '1', '3', '1', '1', 'system:config:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('46', '参数新增', '10', '2', '#', '', '', '0', '1', '3', '1', '1', 'system:config:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('47', '参数修改', '10', '3', '#', '', '', '0', '1', '3', '1', '1', 'system:config:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('48', '参数删除', '10', '4', '#', '', '', '0', '1', '3', '1', '1', 'system:config:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('49', '参数导出', '10', '5', '#', '', '', '0', '1', '3', '1', '1', 'system:config:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('50', '公告查询', '11', '1', '#', '', '', '0', '1', '3', '1', '1', 'system:notice:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('51', '公告新增', '11', '2', '#', '', '', '0', '1', '3', '1', '1', 'system:notice:add', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('52', '公告修改', '11', '3', '#', '', '', '0', '1', '3', '1', '1', 'system:notice:edit', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('53', '公告删除', '11', '4', '#', '', '', '0', '1', '3', '1', '1', 'system:notice:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('54', '操作查询', '18', '1', '#', '', '', '0', '1', '3', '1', '1', 'monitor:operlog:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('55', '操作删除', '18', '2', '#', '', '', '0', '1', '3', '1', '1', 'monitor:operlog:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('56', '日志导出', '18', '4', '#', '', '', '0', '1', '3', '1', '1', 'monitor:operlog:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('57', '登录查询', '19', '1', '#', '', '', '0', '1', '3', '1', '1', 'monitor:logininfor:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('58', '登录删除', '19', '2', '#', '', '', '0', '1', '3', '1', '1', 'monitor:logininfor:remove', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('59', '日志导出', '19', '3', '#', '', '', '0', '1', '3', '1', '1', 'monitor:logininfor:export', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('60', '在线查询', '13', '1', '#', '', '', '0', '1', '3', '1', '1', 'monitor:online:query', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('61', '批量强退', '13', '2', '#', '', '', '0', '1', '3', '1', '1', 'monitor:online:batchLogout', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO `sys_menu` VALUES ('62', '单条强退', '13', '3', '#', '', '', '0', '1', '3', '1', '1', 'monitor:online:forceLogout', '#', '0', '2022-05-21 08:30:54', null, null, '', '0');
INSERT INTO sys_menu VALUES (1, '系统管理', 2, '', 0, '/system', 0, '', '{"title":"系统管理","icon":"ep:management","showParent":1,"rank":1}', 1, '系统管理目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:08:50', 0);
INSERT INTO sys_menu VALUES (2, '系统监控', 2, '', 0, '/monitor', 0, '', '{"title":"系统监控","icon":"ep:monitor","showParent":1,"rank":3}', 1, '系统监控目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:15', 0);
INSERT INTO sys_menu VALUES (3, '系统工具', 2, '', 0, '/tool', 0, '', '{"title":"系统工具","icon":"ep:tools","showParent":1,"rank":2}', 1, '系统工具目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:03', 0);
INSERT INTO sys_menu VALUES (4, 'AgileBoot官网', 3, 'AgileBootguanwangIframeRouter', 0, '/AgileBootguanwangIframeLink', 0, '', '{"title":"AgileBoot官网","icon":"ep:link","showParent":1,"frameSrc":"https://element-plus.org/zh-CN/","rank":8}', 1, 'Agileboot官网地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:40', 0);
INSERT INTO sys_menu VALUES (5, '用户管理', 1, 'SystemUser', 1, '/system/user/index', 0, 'system:user:list', '{"title":"用户管理","icon":"ep:user-filled","showParent":1}', 1, '用户管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:13', 0);
INSERT INTO sys_menu VALUES (6, '角色管理', 1, 'SystemRole', 1, '/system/role/index', 0, 'system:role:list', '{"title":"角色管理","icon":"ep:user","showParent":1}', 1, '角色管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:23', 0);
INSERT INTO sys_menu VALUES (7, '菜单管理', 1, 'MenuManagement', 1, '/system/menu/index', 0, 'system:menu:list', '{"title":"菜单管理","icon":"ep:menu","showParent":1}', 1, '菜单管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:41', 0);
INSERT INTO sys_menu VALUES (8, '部门管理', 1, 'Department', 1, '/system/dept/index', 0, 'system:dept:list', '{"title":"部门管理","icon":"fa-solid:code-branch","showParent":1}', 1, '部门管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:35', 0);
INSERT INTO sys_menu VALUES (9, '岗位管理', 1, 'Post', 1, '/system/post/index', 0, 'system:post:list', '{"title":"岗位管理","icon":"ep:postcard","showParent":1}', 1, '岗位管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:11', 0);
INSERT INTO sys_menu VALUES (10, '参数设置', 1, 'Config', 1, '/system/config/index', 0, 'system:config:list', '{"title":"参数设置","icon":"ep:setting","showParent":1}', 1, '参数设置菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:03', 0);
INSERT INTO sys_menu VALUES (11, '通知公告', 1, 'SystemNotice', 1, '/system/notice/index', 0, 'system:notice:list', '{"title":"通知公告","icon":"ep:notification","showParent":1}', 1, '通知公告菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:56', 0);
INSERT INTO sys_menu VALUES (12, '日志管理', 1, 'LogManagement', 1, '/system/logd', 0, '', '{"title":"日志管理","icon":"ep:document","showParent":1}', 1, '日志管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:47', 0);
INSERT INTO sys_menu VALUES (13, '在线用户', 1, 'OnlineUser', 2, '/system/monitor/onlineUser/index', 0, 'monitor:online:list', '{"title":"在线用户","icon":"fa-solid:users","showParent":1}', 1, '在线用户菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:13', 0);
INSERT INTO sys_menu VALUES (14, '数据监控', 1, 'DataMonitor', 2, '/system/monitor/druid/index', 0, 'monitor:druid:list', '{"title":"数据监控","icon":"fa:database","showParent":1,"frameSrc":"/druid/login.html","isFrameSrcInternal":1}', 1, '数据监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:25', 0);
INSERT INTO sys_menu VALUES (15, '服务监控', 1, 'ServerInfo', 2, '/system/monitor/server/index', 0, 'monitor:server:list', '{"title":"服务监控","icon":"fa:server","showParent":1}', 1, '服务监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:34', 0);
INSERT INTO sys_menu VALUES (16, '缓存监控', 1, 'CacheInfo', 2, '/system/monitor/cache/index', 0, 'monitor:cache:list', '{"title":"缓存监控","icon":"ep:reading","showParent":1}', 1, '缓存监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:59', 0);
INSERT INTO sys_menu VALUES (17, '系统接口', 1, 'SystemAPI', 3, '/tool/swagger/index', 0, 'tool:swagger:list', '{"title":"系统接口","icon":"ep:document-remove","showParent":1,"frameSrc":"/swagger-ui/index.html","isFrameSrcInternal":1}', 1, '系统接口菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:01', 0);
INSERT INTO sys_menu VALUES (18, '操作日志', 1, 'OperationLog', 12, '/system/log/operationLog/index', 0, 'monitor:operlog:list', '{"title":"操作日志"}', 1, '操作日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (19, '登录日志', 1, 'LoginLog', 12, '/system/log/loginLog/index', 0, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, '登录日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (20, '用户查询', 0, ' ', 5, '', 1, 'system:user:query', '{"title":"用户查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (21, '用户新增', 0, ' ', 5, '', 1, 'system:user:add', '{"title":"用户新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (22, '用户修改', 0, ' ', 5, '', 1, 'system:user:edit', '{"title":"用户修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (23, '用户删除', 0, ' ', 5, '', 1, 'system:user:remove', '{"title":"用户删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (24, '用户导出', 0, ' ', 5, '', 1, 'system:user:export', '{"title":"用户导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (25, '用户导入', 0, ' ', 5, '', 1, 'system:user:import', '{"title":"用户导入"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (26, '重置密码', 0, ' ', 5, '', 1, 'system:user:resetPwd', '{"title":"重置密码"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (27, '角色查询', 0, ' ', 6, '', 1, 'system:role:query', '{"title":"角色查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (28, '角色新增', 0, ' ', 6, '', 1, 'system:role:add', '{"title":"角色新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (29, '角色修改', 0, ' ', 6, '', 1, 'system:role:edit', '{"title":"角色修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (30, '角色删除', 0, ' ', 6, '', 1, 'system:role:remove', '{"title":"角色删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (31, '角色导出', 0, ' ', 6, '', 1, 'system:role:export', '{"title":"角色导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (32, '菜单查询', 0, ' ', 7, '', 1, 'system:menu:query', '{"title":"菜单查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (33, '菜单新增', 0, ' ', 7, '', 1, 'system:menu:add', '{"title":"菜单新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (34, '菜单修改', 0, ' ', 7, '', 1, 'system:menu:edit', '{"title":"菜单修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (35, '菜单删除', 0, ' ', 7, '', 1, 'system:menu:remove', '{"title":"菜单删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (36, '部门查询', 0, ' ', 8, '', 1, 'system:dept:query', '{"title":"部门查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (37, '部门新增', 0, ' ', 8, '', 1, 'system:dept:add', '{"title":"部门新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (38, '部门修改', 0, ' ', 8, '', 1, 'system:dept:edit', '{"title":"部门修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (39, '部门删除', 0, ' ', 8, '', 1, 'system:dept:remove', '{"title":"部门删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (40, '岗位查询', 0, ' ', 9, '', 1, 'system:post:query', '{"title":"岗位查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (41, '岗位新增', 0, ' ', 9, '', 1, 'system:post:add', '{"title":"岗位新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (42, '岗位修改', 0, ' ', 9, '', 1, 'system:post:edit', '{"title":"岗位修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (43, '岗位删除', 0, ' ', 9, '', 1, 'system:post:remove', '{"title":"岗位删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (44, '岗位导出', 0, ' ', 9, '', 1, 'system:post:export', '{"title":"岗位导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (45, '参数查询', 0, ' ', 10, '', 1, 'system:config:query', '{"title":"参数查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (46, '参数新增', 0, ' ', 10, '', 1, 'system:config:add', '{"title":"参数新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (47, '参数修改', 0, ' ', 10, '', 1, 'system:config:edit', '{"title":"参数修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (48, '参数删除', 0, ' ', 10, '', 1, 'system:config:remove', '{"title":"参数删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (49, '参数导出', 0, ' ', 10, '', 1, 'system:config:export', '{"title":"参数导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (50, '公告查询', 0, ' ', 11, '', 1, 'system:notice:query', '{"title":"公告查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (51, '公告新增', 0, ' ', 11, '', 1, 'system:notice:add', '{"title":"公告新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (52, '公告修改', 0, ' ', 11, '', 1, 'system:notice:edit', '{"title":"公告修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (53, '公告删除', 0, ' ', 11, '', 1, 'system:notice:remove', '{"title":"公告删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (54, '操作查询', 0, ' ', 18, '', 1, 'monitor:operlog:query', '{"title":"操作查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (55, '操作删除', 0, ' ', 18, '', 1, 'monitor:operlog:remove', '{"title":"操作删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (56, '日志导出', 0, ' ', 18, '', 1, 'monitor:operlog:export', '{"title":"日志导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (57, '登录查询', 0, ' ', 19, '', 1, 'monitor:logininfor:query', '{"title":"登录查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (58, '登录删除', 0, ' ', 19, '', 1, 'monitor:logininfor:remove', '{"title":"登录删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (59, '日志导出', 0, ' ', 19, '', 1, 'monitor:logininfor:export', '{"title":"日志导出","rank":22}', 1, '', 0, '2022-05-21 08:30:54', 1, '2023-07-22 17:02:28', 0);
INSERT INTO sys_menu VALUES (60, '在线查询', 0, ' ', 13, '', 1, 'monitor:online:query', '{"title":"在线查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (61, '批量强退', 0, ' ', 13, '', 1, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (62, '单条强退', 0, ' ', 13, '', 1, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu VALUES (63, 'AgileBoot Github地址', 4, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/external', 0, '', '{"title":"AgileBoot Github地址","icon":"fa-solid:external-link-alt","showParent":1,"rank":9}', 1, 'Agileboot github地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:13', 0);
INSERT INTO sys_menu VALUES (64, '首页', 2, '', 0, '/global', 0, '121212', '{"title":"首页","showParent":1,"rank":3}', 1, '', 1, '2023-07-24 22:36:03', 1, '2023-07-24 22:38:37', 1);
INSERT INTO sys_menu VALUES (65, '个人中心', 1, 'PersonalCenter', 2053, '/system/user/profile', 0, '434sdf', '{"title":"个人中心","showParent":1,"rank":3}', 1, '', 1, '2023-07-24 22:36:55', null, null, 1);
-- ----------------------------

View File

@@ -55,26 +55,23 @@ create table sys_login_info
create sequence if not exists sys_menu_seq start with 63 increment by 1;
create table sys_menu
(
menu_id bigint default next value for sys_menu_seq,
menu_name varchar(64) not null comment '菜单名称',
parent_id bigint default 0 not null comment '菜单ID',
order_num int default 0 not null comment '显示顺序',
path varchar(255) default '' null comment '路由地址',
component varchar(255) null comment '组件路径',
query varchar(255) null comment '路由参数',
is_external tinyint default 1 not null comment '是否为外链1是 0否',
is_cache tinyint default 0 not null comment '是否缓存1缓存 0不缓存',
menu_type smallint default 0 not null comment '菜单类型M=1目录 C=2菜单 F=3按钮',
is_visible tinyint default 0 not null comment '菜单状态1显示 0隐藏',
status smallint default 0 not null comment '菜单状态0正常 1停用',
perms varchar(128) null comment '权限标识',
icon varchar(128) default '#' null comment '菜单图标',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) default '' null comment '备注',
deleted tinyint default 0 not null comment '逻辑删除'
menu_id bigint auto_increment comment '菜单ID'
primary key,
menu_name varchar(64) not null comment '菜单名称',
menu_type smallint default 0 not null comment '菜单的类型(1为普通菜单2为目录3为内嵌iFrame4为外链跳转)',
router_name varchar(255) default '' not null comment '路由名称需保持和前端对应的vue文件中的name保持一致defineOptions方法中设置的name',
parent_id bigint default 0 not null comment '父菜单ID',
path varchar(255) null comment '组件路径对应前端项目view文件夹中的路径',
is_button tinyint(1) default 0 not null comment '是否按钮',
permission varchar(128) null comment '权限标识',
meta_info varchar(1024) default '{}' not null comment '路由元信息(前端根据这个信息进行逻辑处理',
status smallint default 0 not null comment '菜单状态1启用 0停用',
remark varchar(256) default '' null comment '备注',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
);
create sequence if not exists sys_notice_seq start with 3 increment by 1;
@@ -165,7 +162,7 @@ create table sys_user
role_id bigint null comment '角色id',
dept_id bigint null comment '部门ID',
username varchar(64) not null comment '用户账号',
nick_name varchar(32) not null comment '用户昵称',
nickname varchar(32) not null comment '用户昵称',
user_type smallint default 0 null comment '用户类型00系统用户',
email varchar(128) default '' null comment '用户邮箱',
phone_number varchar(18) default '' null comment '手机号码',

View File

@@ -0,0 +1,195 @@
INSERT INTO app.sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', '["skin-blue","skin-green","skin-purple","skin-red","skin-yellow"]', 'skin-blue', true, null, null, '2022-08-28 22:12:19', '2022-05-21 08:30:55', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 0);
INSERT INTO app.sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '', '123456', true, null, 1, '2023-07-20 14:42:08', '2022-05-21 08:30:55', '初始化密码 123456', 0);
INSERT INTO app.sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', '["theme-dark","theme-light"]', 'theme-dark', true, null, null, '2022-08-28 22:12:15', '2022-08-20 08:30:55', '深色主题theme-dark浅色主题theme-light', 0);
INSERT INTO app.sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (4, '账号自助-验证码开关', 'sys.account.captchaOnOff', '["true","false"]', 'false', false, null, 1, '2023-07-20 14:39:36', '2022-05-21 08:30:55', '是否开启验证码功能true开启false关闭', 0);
INSERT INTO app.sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', '["true","false"]', 'true', false, null, 1, '2022-10-05 22:18:57', '2022-05-21 08:30:55', '是否开启注册用户功能true开启false关闭', 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 0, '0', 'AgileBoot科技', 0, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 1, '0,1', '深圳总公司', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 1, '0,1', '长沙分公司', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 2, '0,1,2', '研发部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, 2, '0,1,2', '市场部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', 1, '2023-07-20 22:46:41', 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, 2, '0,1,2', '测试部门', 3, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, 2, '0,1,2', '财务部门', 4, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, 2, '0,1,2', '运维部门', 5, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, 3, '0,1,3', '市场部!', 1, null, 'valarchie!!', '15888188888', 'valarc1hie@163.com', 0, null, '2022-05-21 08:30:54', 1, '2023-07-20 22:33:31', 0);
INSERT INTO app.sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, 3, '0,1,3', '财务部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (415, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-06-29 22:49:37', 0);
INSERT INTO app.sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (416, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:12:30', 0);
INSERT INTO app.sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (417, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-02 22:16:06', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, '系统管理', 2, '', 0, '/system', false, '', '{"title":"系统管理","icon":"ep:management","showParent":true,"rank":1}', 1, '系统管理目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:08:50', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, '系统监控', 2, '', 0, '/monitor', false, '', '{"title":"系统监控","icon":"ep:monitor","showParent":true,"rank":3}', 1, '系统监控目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:15', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, '系统工具', 2, '', 0, '/tool', false, '', '{"title":"系统工具","icon":"ep:tools","showParent":true,"rank":2}', 1, '系统工具目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:03', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'AgileBoot官网', 3, 'AgileBootguanwangIframeRouter', 0, '/AgileBootguanwangIframeLink', false, '', '{"title":"AgileBoot官网","icon":"ep:link","showParent":true,"frameSrc":"https://element-plus.org/zh-CN/","rank":8}', 1, 'Agileboot官网地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:40', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, '用户管理', 1, 'SystemUser', 1, '/system/user/index', false, 'system:user:list', '{"title":"用户管理","icon":"ep:user-filled","showParent":true}', 1, '用户管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:13', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, '角色管理', 1, 'SystemRole', 1, '/system/role/index', false, 'system:role:list', '{"title":"角色管理","icon":"ep:user","showParent":true}', 1, '角色管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:23', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, '菜单管理', 1, 'MenuManagement', 1, '/system/menu/index', false, 'system:menu:list', '{"title":"菜单管理","icon":"ep:menu","showParent":true}', 1, '菜单管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:41', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, '部门管理', 1, 'Department', 1, '/system/dept/index', false, 'system:dept:list', '{"title":"部门管理","icon":"fa-solid:code-branch","showParent":true}', 1, '部门管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:35', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, '岗位管理', 1, 'Post', 1, '/system/post/index', false, 'system:post:list', '{"title":"岗位管理","icon":"ep:postcard","showParent":true}', 1, '岗位管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:11', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, '参数设置', 1, 'Config', 1, '/system/config/index', false, 'system:config:list', '{"title":"参数设置","icon":"ep:setting","showParent":true}', 1, '参数设置菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:03', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (11, '通知公告', 1, 'SystemNotice', 1, '/system/notice/index', false, 'system:notice:list', '{"title":"通知公告","icon":"ep:notification","showParent":true}', 1, '通知公告菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:56', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (12, '日志管理', 1, 'LogManagement', 1, '/system/logd', false, '', '{"title":"日志管理","icon":"ep:document","showParent":true}', 1, '日志管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:47', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (13, '在线用户', 1, 'OnlineUser', 2, '/system/monitor/onlineUser/index', false, 'monitor:online:list', '{"title":"在线用户","icon":"fa-solid:users","showParent":true}', 1, '在线用户菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:13', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (14, '数据监控', 1, 'DataMonitor', 2, '/system/monitor/druid/index', false, 'monitor:druid:list', '{"title":"数据监控","icon":"fa:database","showParent":true,"frameSrc":"/druid/login.html","isFrameSrcInternal":true}', 1, '数据监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:25', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (15, '服务监控', 1, 'ServerInfo', 2, '/system/monitor/server/index', false, 'monitor:server:list', '{"title":"服务监控","icon":"fa:server","showParent":true}', 1, '服务监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:34', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (16, '缓存监控', 1, 'CacheInfo', 2, '/system/monitor/cache/index', false, 'monitor:cache:list', '{"title":"缓存监控","icon":"ep:reading","showParent":true}', 1, '缓存监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:59', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (17, '系统接口', 1, 'SystemAPI', 3, '/tool/swagger/index', false, 'tool:swagger:list', '{"title":"系统接口","icon":"ep:document-remove","showParent":true,"frameSrc":"/swagger-ui/index.html","isFrameSrcInternal":true}', 1, '系统接口菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:01', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (18, '操作日志', 1, 'OperationLog', 12, '/system/log/operationLog/index', false, 'monitor:operlog:list', '{"title":"操作日志"}', 1, '操作日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (19, '登录日志', 1, 'LoginLog', 12, '/system/log/loginLog/index', false, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, '登录日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (20, '用户查询', 0, ' ', 5, '', true, 'system:user:query', '{"title":"用户查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (21, '用户新增', 0, ' ', 5, '', true, 'system:user:add', '{"title":"用户新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (22, '用户修改', 0, ' ', 5, '', true, 'system:user:edit', '{"title":"用户修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (23, '用户删除', 0, ' ', 5, '', true, 'system:user:remove', '{"title":"用户删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (24, '用户导出', 0, ' ', 5, '', true, 'system:user:export', '{"title":"用户导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (25, '用户导入', 0, ' ', 5, '', true, 'system:user:import', '{"title":"用户导入"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (26, '重置密码', 0, ' ', 5, '', true, 'system:user:resetPwd', '{"title":"重置密码"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (27, '角色查询', 0, ' ', 6, '', true, 'system:role:query', '{"title":"角色查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (28, '角色新增', 0, ' ', 6, '', true, 'system:role:add', '{"title":"角色新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (29, '角色修改', 0, ' ', 6, '', true, 'system:role:edit', '{"title":"角色修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (30, '角色删除', 0, ' ', 6, '', true, 'system:role:remove', '{"title":"角色删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (31, '角色导出', 0, ' ', 6, '', true, 'system:role:export', '{"title":"角色导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (32, '菜单查询', 0, ' ', 7, '', true, 'system:menu:query', '{"title":"菜单查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (33, '菜单新增', 0, ' ', 7, '', true, 'system:menu:add', '{"title":"菜单新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (34, '菜单修改', 0, ' ', 7, '', true, 'system:menu:edit', '{"title":"菜单修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (35, '菜单删除', 0, ' ', 7, '', true, 'system:menu:remove', '{"title":"菜单删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (36, '部门查询', 0, ' ', 8, '', true, 'system:dept:query', '{"title":"部门查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (37, '部门新增', 0, ' ', 8, '', true, 'system:dept:add', '{"title":"部门新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (38, '部门修改', 0, ' ', 8, '', true, 'system:dept:edit', '{"title":"部门修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (39, '部门删除', 0, ' ', 8, '', true, 'system:dept:remove', '{"title":"部门删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (40, '岗位查询', 0, ' ', 9, '', true, 'system:post:query', '{"title":"岗位查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (41, '岗位新增', 0, ' ', 9, '', true, 'system:post:add', '{"title":"岗位新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (42, '岗位修改', 0, ' ', 9, '', true, 'system:post:edit', '{"title":"岗位修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (43, '岗位删除', 0, ' ', 9, '', true, 'system:post:remove', '{"title":"岗位删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (44, '岗位导出', 0, ' ', 9, '', true, 'system:post:export', '{"title":"岗位导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (45, '参数查询', 0, ' ', 10, '', true, 'system:config:query', '{"title":"参数查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (46, '参数新增', 0, ' ', 10, '', true, 'system:config:add', '{"title":"参数新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (47, '参数修改', 0, ' ', 10, '', true, 'system:config:edit', '{"title":"参数修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (48, '参数删除', 0, ' ', 10, '', true, 'system:config:remove', '{"title":"参数删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (49, '参数导出', 0, ' ', 10, '', true, 'system:config:export', '{"title":"参数导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (50, '公告查询', 0, ' ', 11, '', true, 'system:notice:query', '{"title":"公告查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (51, '公告新增', 0, ' ', 11, '', true, 'system:notice:add', '{"title":"公告新增"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (52, '公告修改', 0, ' ', 11, '', true, 'system:notice:edit', '{"title":"公告修改"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (53, '公告删除', 0, ' ', 11, '', true, 'system:notice:remove', '{"title":"公告删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (54, '操作查询', 0, ' ', 18, '', true, 'monitor:operlog:query', '{"title":"操作查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (55, '操作删除', 0, ' ', 18, '', true, 'monitor:operlog:remove', '{"title":"操作删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (56, '日志导出', 0, ' ', 18, '', true, 'monitor:operlog:export', '{"title":"日志导出"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (57, '登录查询', 0, ' ', 19, '', true, 'monitor:logininfor:query', '{"title":"登录查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (58, '登录删除', 0, ' ', 19, '', true, 'monitor:logininfor:remove', '{"title":"登录删除"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (59, '日志导出', 0, ' ', 19, '', true, 'monitor:logininfor:export', '{"title":"日志导出","rank":22}', 1, '', 0, '2022-05-21 08:30:54', 1, '2023-07-22 17:02:28', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (60, '在线查询', 0, ' ', 13, '', true, 'monitor:online:query', '{"title":"在线查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (61, '批量强退', 0, ' ', 13, '', true, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (62, '单条强退', 0, ' ', 13, '', true, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (63, 'AgileBoot Github地址', 4, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/external', false, '', '{"title":"AgileBoot Github地址","icon":"fa-solid:external-link-alt","showParent":true,"rank":9}', 1, 'Agileboot github地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:13', 0);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (64, '首页', 2, '', 0, '/global', false, '121212', '{"title":"首页","showParent":true,"rank":3}', 1, '', 1, '2023-07-24 22:36:03', 1, '2023-07-24 22:38:37', 1);
INSERT INTO app.sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (65, '个人中心', 1, 'PersonalCenter', 2053, '/system/user/profile', false, '434sdf', '{"title":"个人中心","showParent":true,"rank":3}', 1, '', 1, '2023-07-24 22:36:55', null, null, 1);
INSERT INTO app.sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '温馨提醒2018-07-01 AgileBoot新版本发布啦', 2, '新版本内容~~~~~~~~~~', 1, 1, '2022-05-21 08:30:55', 1, '2022-08-29 20:12:37', '管理员', 0);
INSERT INTO app.sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '维护通知2018-07-01 AgileBoot系统凌晨维护', 1, '维护内容', 1, 1, '2022-05-21 08:30:55', null, null, '管理员', 0);
INSERT INTO app.sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (561, 1, 2, '菜单管理', '/system/menus', 'it.upos.builder.admin.controller.system.SysMenuController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"menuName":"","permission":"","parentId":2035,"path":"","isButton":false,"routerName":"","meta":{"showParent":true,"rank":0},"status":1},', '', 1, '', '2023-07-22 17:06:57', 0);
INSERT INTO app.sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 'ceo', '董事长', 1, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 'se', '项目经理', 2, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 'hr', '人力资源', 3, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'user', '普通员工', 5, 0, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO app.sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '超级管理员', 'admin', 1, 1, '', 1, null, '2022-05-21 08:30:54', null, null, '超级管理员', 0);
INSERT INTO app.sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '普通角色', 'common', 3, 2, '', 1, null, '2022-05-21 08:30:54', null, null, '普通角色', 0);
INSERT INTO app.sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '闲置角色', 'unused', 4, 2, '', 0, null, '2022-05-21 08:30:54', null, null, '未使用的角色', 0);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 1);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 2);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 3);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 4);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 5);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 6);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 7);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 8);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 9);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 10);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 11);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 12);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 13);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 14);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 15);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 16);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 17);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 18);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 19);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 20);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 21);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 22);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 23);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 24);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 25);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 26);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 27);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 28);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 29);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 30);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 31);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 32);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 33);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 34);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 35);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 36);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 37);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 38);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 39);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 40);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 41);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 42);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 43);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 44);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 45);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 46);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 47);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 48);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 49);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 50);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 51);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 52);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 53);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 54);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 55);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 56);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 57);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 58);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 59);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 60);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (2, 61);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (3, 1);
INSERT INTO app.sys_role_menu (role_id, menu_id) VALUES (111, 1);
INSERT INTO app.sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888883', 0, '/profile/avatar/20230725164110_blob_6b7a989b1cdd4dd396665d2cfd2addc5.png', '$2a$10$o55UFZAtyWnDpRV6dvQe8.c/MjlFacC49ASj2usNXm9BY74SYI/uG', 1, '127.0.0.1', '2023-08-14 23:07:03', true, null, '2022-05-21 08:30:54', 1, '2023-08-14 23:07:03', '管理员', 0);
INSERT INTO app.sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '/profile/avatar/20230725114818_avatar_b5bf400732bb43369b4df58802049b22.png', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', false, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO app.sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '/profile/avatar/20230725114818_avatar_b5bf400732bb43369b4df58802049b22.png', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', false, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);
-- 序列更新
select setval('app.sys_config_config_id_seq',COALESCE(max(config_id),1)) from app.sys_config;
select setval('app.sys_dept_dept_id_seq',COALESCE(max(dept_id),1)) from app.sys_dept;
select setval('app.sys_login_info_info_id_seq',COALESCE(max(info_id),1)) from app.sys_login_info;
select setval('app.sys_menu_menu_id_seq',COALESCE(max(menu_id),1)) from app.sys_menu;
select setval('app.sys_notice_notice_id_seq',COALESCE(max(notice_id),1)) from app.sys_notice;
select setval('app.sys_operation_log_operation_id_seq',COALESCE(max(operation_id),1)) from app.sys_operation_log;
select setval('app.sys_post_post_id_seq',COALESCE(max(post_id),1)) from app.sys_post;
select setval('app.sys_role_role_id_seq',COALESCE(max(role_id),1)) from app.sys_role;
select setval('app.sys_user_user_id_seq',COALESCE(max(user_id),1)) from app.sys_user;

View File

@@ -0,0 +1,174 @@
-- 创建表 sys_config 参数配置表
CREATE TABLE app.sys_config (
config_id serial8 PRIMARY KEY NOT NULL, -- 参数主键
config_name VARCHAR(128) NOT NULL DEFAULT '', -- 配置名称
config_key VARCHAR(128) NOT NULL, -- 配置键名
config_options VARCHAR(1024) NOT NULL DEFAULT '', -- 可选的选项
config_value VARCHAR(256) NOT NULL DEFAULT '', -- 配置值
is_allow_change bool NOT NULL, -- 是否允许修改
creator_id int8, -- 创建者ID
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
create_time TIMESTAMPTZ, -- 创建时间
remark VARCHAR(128), -- 备注
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_dept 部门表
CREATE TABLE app.sys_dept (
dept_id serial8 PRIMARY KEY NOT NULL, -- 部门id
parent_id int8 NOT NULL DEFAULT 0, -- 父部门id
ancestors TEXT NOT NULL, -- 祖级列表
dept_name VARCHAR(64) NOT NULL DEFAULT '', -- 部门名称
order_num INT NOT NULL DEFAULT 0, -- 显示顺序
leader_id int8, -- 负责人
leader_name VARCHAR(64), -- 负责人姓名
phone VARCHAR(16), -- 联系电话
email VARCHAR(128), -- 邮箱
status SMALLINT NOT NULL DEFAULT 0, -- 部门状态0停用 1启用
creator_id int8, -- 创建者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_login_info 系统访问记录
CREATE TABLE app.sys_login_info (
info_id serial8 PRIMARY KEY NOT NULL, -- 访问ID
username VARCHAR(50) NOT NULL DEFAULT '', -- 用户账号
ip_address VARCHAR(128) NOT NULL DEFAULT '', -- 登录IP地址
login_location VARCHAR(255) NOT NULL DEFAULT '', -- 登录地点
browser VARCHAR(50) NOT NULL DEFAULT '', -- 浏览器类型
operation_system VARCHAR(50) NOT NULL DEFAULT '', -- 操作系统
status int2 NOT NULL DEFAULT 0, -- 登录状态1成功 0失败
msg VARCHAR(255) NOT NULL DEFAULT '', -- 提示消息
login_time TIMESTAMPTZ, -- 访问时间
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_notice 通知公告表
CREATE TABLE app.sys_notice (
notice_id serial8 PRIMARY KEY NOT NULL, -- 公告ID
notice_title VARCHAR(64) NOT NULL, -- 公告标题
notice_type int2 NOT NULL, -- 公告类型1通知 2公告
notice_content TEXT, -- 公告内容
status int2 NOT NULL DEFAULT 0, -- 公告状态1正常 0关闭
creator_id int8 NOT NULL, -- 创建者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
remark VARCHAR(255) NOT NULL DEFAULT '', -- 备注
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_operation_log 操作日志记录
CREATE TABLE app.sys_operation_log (
operation_id serial8 PRIMARY KEY NOT NULL, -- 日志主键
business_type int2 NOT NULL DEFAULT 0, -- 业务类型0其它 1新增 2修改 3删除
request_method int2 NOT NULL DEFAULT 0, -- 请求方式
request_module VARCHAR(64) NOT NULL DEFAULT '', -- 请求模块
request_url VARCHAR(256) NOT NULL DEFAULT '', -- 请求URL
called_method VARCHAR(128) NOT NULL DEFAULT '', -- 调用方法
operator_type int2 NOT NULL DEFAULT 0, -- 操作类别0其它 1后台用户 2手机端用户
user_id int8, -- 用户ID
username VARCHAR(32), -- 操作人员
operator_ip VARCHAR(128), -- 操作人员ip
operator_location VARCHAR(256), -- 操作地点
dept_id int8, -- 部门ID
dept_name VARCHAR(64), -- 部门名称
operation_param VARCHAR(2048), -- 请求参数
operation_result VARCHAR(2048), -- 返回参数
status int2 NOT NULL DEFAULT 1, -- 操作状态1正常 0异常
error_stack VARCHAR(2048), -- 错误消息
operation_time TIMESTAMPTZ NOT NULL, -- 操作时间
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_post 岗位信息表
CREATE TABLE app.sys_post (
post_id serial8 PRIMARY KEY NOT NULL, -- 岗位ID
post_code VARCHAR(64) NOT NULL, -- 岗位编码
post_name VARCHAR(64) NOT NULL, -- 岗位名称
post_sort INT NOT NULL, -- 显示顺序
status int2 NOT NULL, -- 状态1正常 0停用
remark VARCHAR(512), -- 备注
creator_id int8, -- 创建者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_menu 菜单权限表
CREATE TABLE app.sys_menu (
menu_id serial8 PRIMARY KEY NOT NULL, -- 菜单ID
menu_name VARCHAR(64) NOT NULL, -- 菜单名称
menu_type int2 NOT NULL DEFAULT 0, -- 菜单的类型(1为普通菜单2为目录3为内嵌iFrame4为外链跳转)
router_name VARCHAR(255) NOT NULL DEFAULT '', -- 路由名称
parent_id int8 NOT NULL DEFAULT 0, -- 父菜单ID
path VARCHAR(255), -- 组件路径
is_button bool NOT NULL DEFAULT false, -- 是否按钮
permission VARCHAR(128), -- 权限标识
meta_info VARCHAR(1024) NOT NULL DEFAULT '{}', -- 路由元信息
status int2 NOT NULL DEFAULT 0, -- 菜单状态1启用 0停用
remark VARCHAR(256), -- 备注
creator_id int8, -- 创建者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
deleted int2 DEFAULT 0 NOT NULL -- 逻辑删除
);
-- 创建表 sys_role 角色信息表
CREATE TABLE app.sys_role (
role_id serial8 PRIMARY KEY NOT NULL, -- 角色ID
role_name VARCHAR(32) NOT NULL, -- 角色名称
role_key VARCHAR(128) NOT NULL, -- 角色权限字符串
role_sort INT NOT NULL, -- 显示顺序
data_scope int2, -- 数据范围
dept_id_set VARCHAR(1024) DEFAULT '', -- 角色所拥有的部门数据权限
status int2 NOT NULL, -- 角色状态1正常 0停用
creator_id int8, -- 创建者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
remark VARCHAR(512), -- 备注
deleted int2 DEFAULT 0 NOT NULL -- 删除标志0代表存在 1代表删除
);
-- 创建表 sys_role_menu 角色和菜单关联表
CREATE TABLE app.sys_role_menu (
role_id int8 NOT NULL, -- 角色ID
menu_id int8 NOT NULL, -- 菜单ID
PRIMARY KEY (role_id, menu_id) -- 设置复合主键
);
-- 创建表 sys_user 用户信息表
CREATE TABLE app.sys_user (
user_id serial8 PRIMARY KEY NOT NULL, -- 用户ID
post_id int8, -- 职位id
role_id int8, -- 角色id
dept_id int8, -- 部门ID
username VARCHAR(64) NOT NULL, -- 用户账号
nickname VARCHAR(32) NOT NULL, -- 用户昵称
user_type int2 DEFAULT 0, -- 用户类型00系统用户
email VARCHAR(128), -- 用户邮箱
phone_number VARCHAR(18), -- 手机号码
sex int2, -- 用户性别0男 1女 2未知
avatar VARCHAR(512), -- 头像地址
password VARCHAR(128) NOT NULL, -- 密码
status int2 NOT NULL, -- 帐号状态1正常 2停用 3冻结
login_ip VARCHAR(128), -- 最后登录IP
login_date TIMESTAMPTZ, -- 最后登录时间
is_admin bool DEFAULT false NOT NULL, -- 超级管理员标志1是0否
creator_id int8, -- 更新者ID
create_time TIMESTAMPTZ, -- 创建时间
updater_id int8, -- 更新者ID
update_time TIMESTAMPTZ, -- 更新时间
remark VARCHAR(512), -- 备注
deleted int2 DEFAULT 0 NOT NULL -- 删除标志0代表存在 1代表删除
);

308
mvnw vendored Executable file
View File

@@ -0,0 +1,308 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.2.0
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "$(uname)" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME
else
JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=$(java-config --jre-home)
fi
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] &&
JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="$(which javac)"
if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=$(which readlink)
if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
if $darwin ; then
javaHome="$(dirname "\"$javaExecutable\"")"
javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac"
else
javaExecutable="$(readlink -f "\"$javaExecutable\"")"
fi
javaHome="$(dirname "\"$javaExecutable\"")"
javaHome=$(expr "$javaHome" : '\(.*\)/bin')
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=$(cd "$wdir/.." || exit 1; pwd)
fi
# end of workaround
done
printf '%s' "$(cd "$basedir" || exit 1; pwd)"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
# Remove \r in case we run on Windows within Git Bash
# and check out the repository with auto CRLF management
# enabled. Otherwise, we may read lines that are delimited with
# \r\n and produce $'-Xarg\r' rather than -Xarg due to word
# splitting rules.
tr -s '\r\n' ' ' < "$1"
fi
}
log() {
if [ "$MVNW_VERBOSE" = true ]; then
printf '%s\n' "$1"
fi
}
BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR
log "$MAVEN_PROJECTBASEDIR"
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
if [ -r "$wrapperJarPath" ]; then
log "Found $wrapperJarPath"
else
log "Couldn't find $wrapperJarPath, downloading it ..."
if [ -n "$MVNW_REPOURL" ]; then
wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
else
wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
fi
while IFS="=" read -r key value; do
# Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
safeValue=$(echo "$value" | tr -d '\r')
case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
log "Downloading from: $wrapperUrl"
if $cygwin; then
wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
fi
if command -v wget > /dev/null; then
log "Found wget ... using wget"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
log "Found curl ... using curl"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
else
curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
fi
else
log "Falling back to using Java to download"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaSource=$(cygpath --path --windows "$javaSource")
javaClass=$(cygpath --path --windows "$javaClass")
fi
if [ -e "$javaSource" ]; then
if [ ! -e "$javaClass" ]; then
log " - Compiling MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/javac" "$javaSource")
fi
if [ -e "$javaClass" ]; then
log " - Running MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
# If specified, validate the SHA-256 sum of the Maven wrapper jar file
wrapperSha256Sum=""
while IFS="=" read -r key value; do
case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
if [ -n "$wrapperSha256Sum" ]; then
wrapperSha256Result=false
if command -v sha256sum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
elif command -v shasum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
else
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available."
echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties."
exit 1
fi
if [ $wrapperSha256Result = false ]; then
echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
exit 1
fi
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
# shellcheck disable=SC2086 # safe args
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

205
mvnw.cmd vendored Normal file
View File

@@ -0,0 +1,205 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Apache Maven Wrapper startup batch script, version 3.2.0
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %WRAPPER_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
SET WRAPPER_SHA_256_SUM=""
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
)
IF NOT %WRAPPER_SHA_256_SUM%=="" (
powershell -Command "&{"^
"$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
"If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
" Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
" Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
" Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
" exit 1;"^
"}"^
"}"
if ERRORLEVEL 1 goto error
)
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
cmd /C exit /B %ERROR_CODE%

39
pom.xml
View File

@@ -33,10 +33,9 @@
<velocity.version>2.3</velocity.version>
<jwt.version>0.9.1</jwt.version>
<hutool.version>5.7.22</hutool.version>
<lombok.version>1.18.24</lombok.version>
<lombok.version>1.18.30</lombok.version>
<mybatis-plus.version>3.5.2</mybatis-plus.version>
<mybatis-plus-generator.version>3.5.1</mybatis-plus-generator.version>
<mockito.version>1.10.19</mockito.version>
<it.ozimov.version>0.7.3</it.ozimov.version>
<io.swagger.version>1.6.8</io.swagger.version>
<org.lionsoul.version>2.6.5</org.lionsoul.version>
@@ -45,8 +44,13 @@
<mysql-connector-java>8.0.31</mysql-connector-java>
<spring.boot.version>2.7.10</spring.boot.version>
<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
<maven.surefire.plugin.version>2.5</maven.surefire.plugin.version>
<!-- 升级版本以支持junit5 -->
<maven.surefire.plugin.version>3.0.0-M7</maven.surefire.plugin.version>
<maven.war.plugin.version>3.1.0</maven.war.plugin.version>
<!-- JUnit Jupiter 版本 -->
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<!-- Mockito 版本(或直接用 mockito-inline-->
<mockito.version>4.11.0</mockito.version>
</properties>
<!-- 依赖声明 -->
@@ -175,14 +179,14 @@
<version>${project.version}</version>
</dependency>
<!-- 定时任务-->
<!-- app预留接口-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-api</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 代码生成-->
<!-- 核心业务领域-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-domain</artifactId>
@@ -217,13 +221,36 @@
<scope>provided</scope>
</dependency>
<!-- JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<!-- Mockito -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<!-- 如果有需要 mock final/静态 -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<!-- 获取系统信息 -->
<dependency>
<groupId>it.ozimov</groupId>

View File

@@ -55,11 +55,6 @@ INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, lead
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, 2, '0,1,2', '运维部门', 5, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, 3, '0,1,3', '市场部!', 1, null, 'valarchie!!', '15888188888', 'valarc1hie@163.com', 0, null, '2022-05-21 08:30:54', 1, '2023-07-20 22:33:31', 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, 3, '0,1,3', '财务部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (203, 1, '0,1', '12312321', 3, null, '123213123', '18849986671', '1234243@234324.com', 0, 1, '2023-07-20 22:11:06', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (204, 0, '0', '124234', 3, null, '23434', '18849976678', '23423@4234.com', 0, 1, '2023-07-20 22:12:36', null, null, 1);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (205, 1, '0,1', '1234123', 3, null, '234234', '18849976671', '234243@423423.com', 1, 1, '2023-07-20 22:20:29', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (206, 0, '0', '234324', 3, null, '23423423', '18859976672', '23423@43234.com', 1, 1, '2023-07-20 22:47:08', null, null, 1);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (207, 0, '0', '', 0, null, '', '', '', 1, 1, '2023-07-21 21:31:53', null, null, 1);
create table sys_login_info
(
@@ -80,46 +75,6 @@ create table sys_login_info
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (415, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-06-29 22:49:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (416, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:12:30', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (417, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-02 22:16:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (418, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:16:16', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (531, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-18 22:17:08', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (532, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-18 22:17:16', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (533, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-18 22:58:15', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (534, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 09:51:12', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (535, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 10:23:03', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (536, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 0, '验证码错误', '2023-07-19 10:23:24', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (537, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-19 10:23:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (538, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-19 10:26:31', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (539, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 10:26:48', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (540, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 14:08:44', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (541, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 17:34:45', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (542, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 18:06:45', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (543, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码错误', '2023-07-19 22:11:58', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (544, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 22:12:02', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (545, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 23:07:22', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (546, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-19 23:08:21', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (547, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 08:53:18', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (548, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 08:55:58', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (549, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码错误', '2023-07-20 10:35:02', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (550, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 10:35:05', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (551, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 12:03:43', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (552, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 14:00:48', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (553, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 14:39:42', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (554, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 15:44:34', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (555, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 17:03:42', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (556, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-20 18:55:18', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (557, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 10:04:25', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (558, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 12:48:57', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (559, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 12:58:33', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (560, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 15:23:52', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (561, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 15:36:05', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (562, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 19:41:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (563, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 20:11:44', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (564, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 21:25:33', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (565, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-21 22:42:57', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (566, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-22 09:24:07', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (567, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-22 12:18:41', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (568, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-22 14:20:54', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (569, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-22 15:38:53', 0);
create table sys_menu
(
@@ -143,23 +98,23 @@ create table sys_menu
)
comment '菜单权限表';
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, '系统管理', 2, '', 0, '/system', 0, '', '{"title":"系统管理", "rank":"1"}', 1, '系统管理目录', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, '系统监控', 2, '', 0, '/monitor', 0, '', '{"title":"系统监控", "rank":"3"}', 1, '系统监控目录', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, '系统工具', 2, '', 0, '/tool', 0, '', '{"title":"系统工具", "rank":"2"}', 1, '系统工具目录', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'AgileBoot官网', 3, 'OfficialWeb', 0, '/test', 0, '', '{"title":"AgileBoot官网","frameSrc": "https://element-plus.org/zh-CN/", "rank":"8"}', 1, 'Agileboot官网地址', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, '用户管理', 1, 'SystemUser', 1, '/system/user/index', 0, 'system:user:list', '{"title":"用户管理"}', 1, '用户管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, '角色管理', 1, 'SystemRole', 1, '/system/role/index', 0, 'system:role:list', '{"title":"角色管理"}', 1, '角色管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, '菜单管理', 1, 'MenuManagement', 1, '/system/menu/index', 0, 'system:menu:list', '{"title":"菜单管理"}', 1, '菜单管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, '部门管理', 1, 'Department', 1, '/system/dept/index', 0, 'system:dept:list', '{"title":"部门管理"}', 1, '部门管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, '岗位管理', 1, 'Post', 1, '/system/post/index', 0, 'system:post:list', '{"title":"岗位管理"}', 1, '岗位管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, '参数设置', 1, 'Config', 1, '/system/config/index', 0, 'system:config:list', '{"title":"参数设置"}', 1, '参数设置菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (11, '通知公告', 1, 'SystemNotice', 1, '/system/notice/index', 0, 'system:notice:list', '{"title":"通知公告"}', 1, '通知公告菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (12, '日志管理', 1, 'LogManagement', 1, '/system/logd', 0, '', '{"title":"日志管理"}', 1, '日志管理菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (13, '在线用户', 1, 'OnlineUser', 2, '/monitor/onlineUser/index', 0, 'monitor:online:list', '{"title":"在线用户"}', 1, '在线用户菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (14, '数据监控', 1, 'DataMonitor', 2, '/monitor/druid/index', 0, 'monitor:druid:list', '{"title":"数据监控","frameSrc": "/druid/login.html", "isFrameSrcInternal": true}', 1, '数据监控菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (15, '服务监控', 1, 'ServerInfo', 2, '/monitor/server/index', 0, 'monitor:server:list', '{"title":"服务监控"}', 1, '服务监控菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (16, '缓存监控', 1, 'CacheInfo', 2, '/monitor/cache/index', 0, 'monitor:cache:list', '{"title":"缓存监控"}', 1, '缓存监控菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (17, '系统接口', 1, 'SystemAPI', 3, '/tool/swagger/index', 0, 'tool:swagger:list', '{"title":"接口文档","showParent":"true","frameSrc": "/swagger-ui/index.html", "isFrameSrcInternal": true}', 1, '系统接口菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, '系统管理', 2, '', 0, '/system', 0, '', '{"title":"系统管理","icon":"ep:management","showParent":true,"rank":1}', 1, '系统管理目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:08:50', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, '系统监控', 2, '', 0, '/monitor', 0, '', '{"title":"系统监控","icon":"ep:monitor","showParent":true,"rank":3}', 1, '系统监控目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:15', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, '系统工具', 2, '', 0, '/tool', 0, '', '{"title":"系统工具","icon":"ep:tools","showParent":true,"rank":2}', 1, '系统工具目录', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:03', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'AgileBoot官网', 3, 'AgileBootguanwangIframeRouter', 0, '/AgileBootguanwangIframeLink', 0, '', '{"title":"AgileBoot官网","icon":"ep:link","showParent":true,"frameSrc":"https://element-plus.org/zh-CN/","rank":8}', 1, 'Agileboot官网地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:09:40', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, '用户管理', 1, 'SystemUser', 1, '/system/user/index', 0, 'system:user:list', '{"title":"用户管理","icon":"ep:user-filled","showParent":true}', 1, '用户管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:13', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, '角色管理', 1, 'SystemRole', 1, '/system/role/index', 0, 'system:role:list', '{"title":"角色管理","icon":"ep:user","showParent":true}', 1, '角色管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:16:23', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, '菜单管理', 1, 'MenuManagement', 1, '/system/menu/index', 0, 'system:menu:list', '{"title":"菜单管理","icon":"ep:menu","showParent":true}', 1, '菜单管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:41', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, '部门管理', 1, 'Department', 1, '/system/dept/index', 0, 'system:dept:list', '{"title":"部门管理","icon":"fa-solid:code-branch","showParent":true}', 1, '部门管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:35', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, '岗位管理', 1, 'Post', 1, '/system/post/index', 0, 'system:post:list', '{"title":"岗位管理","icon":"ep:postcard","showParent":true}', 1, '岗位管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:11', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, '参数设置', 1, 'Config', 1, '/system/config/index', 0, 'system:config:list', '{"title":"参数设置","icon":"ep:setting","showParent":true}', 1, '参数设置菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:15:03', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (11, '通知公告', 1, 'SystemNotice', 1, '/system/notice/index', 0, 'system:notice:list', '{"title":"通知公告","icon":"ep:notification","showParent":true}', 1, '通知公告菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:56', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (12, '日志管理', 1, 'LogManagement', 1, '/system/logd', 0, '', '{"title":"日志管理","icon":"ep:document","showParent":true}', 1, '日志管理菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:47', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (13, '在线用户', 1, 'OnlineUser', 2, '/system/monitor/onlineUser/index', 0, 'monitor:online:list', '{"title":"在线用户","icon":"fa-solid:users","showParent":true}', 1, '在线用户菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:13', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (14, '数据监控', 1, 'DataMonitor', 2, '/system/monitor/druid/index', 0, 'monitor:druid:list', '{"title":"数据监控","icon":"fa:database","showParent":true,"frameSrc":"/druid/login.html","isFrameSrcInternal":true}', 1, '数据监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:25', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (15, '服务监控', 1, 'ServerInfo', 2, '/system/monitor/server/index', 0, 'monitor:server:list', '{"title":"服务监控","icon":"fa:server","showParent":true}', 1, '服务监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:13:34', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (16, '缓存监控', 1, 'CacheInfo', 2, '/system/monitor/cache/index', 0, 'monitor:cache:list', '{"title":"缓存监控","icon":"ep:reading","showParent":true}', 1, '缓存监控菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:59', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (17, '系统接口', 1, 'SystemAPI', 3, '/tool/swagger/index', 0, 'tool:swagger:list', '{"title":"系统接口","icon":"ep:document-remove","showParent":true,"frameSrc":"/swagger-ui/index.html","isFrameSrcInternal":true}', 1, '系统接口菜单', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:14:01', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (18, '操作日志', 1, 'OperationLog', 12, '/system/log/operationLog/index', 0, 'monitor:operlog:list', '{"title":"操作日志"}', 1, '操作日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (19, '登录日志', 1, 'LoginLog', 12, '/system/log/loginLog/index', 0, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, '登录日志菜单', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (20, '用户查询', 0, ' ', 5, '', 1, 'system:user:query', '{"title":"用户查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
@@ -205,21 +160,9 @@ INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, pa
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (60, '在线查询', 0, ' ', 13, '', 1, 'monitor:online:query', '{"title":"在线查询"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (61, '批量强退', 0, ' ', 13, '', 1, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (62, '单条强退', 0, ' ', 13, '', 1, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, '', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (63, 'AgileBoot Github地址', 4, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/external', 0, '', '{"title":"Github地址", "rank":"9"}', 1, 'Agileboot github地址', 0, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2031, '测试外链跳转1', 4, 'http://element-plus.org/', 2045, '/ceshiwailiantiaozhuan1OutsideLink', 0, 'fdfsxxxx', '{"title":"测试外链跳转1","showParent":true,"rank":1}', 1, '', 1, '2023-07-22 12:29:31', 1, '2023-07-22 16:28:45', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2032, '测试外链跳转2', 4, 'https://github.com/pure-admin/vue-pure-admin/issues/624', 0, '/ceshiwailiantiaozhuan2OutsideLink', 0, 'fsdfsdf', '{"title":"测试外链跳转2","showParent":true,"rank":455}', 1, '', 1, '2023-07-22 12:30:10', 1, '2023-07-22 16:24:38', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2033, '测试内嵌Iframe外链', 3, 'ceshineiqianIframewailianIframeRouter', 0, '/ceshineiqianIframewailianIframeLink', 0, 'sdfdsf', '{"title":"测试内嵌Iframe外链","showParent":true,"frameSrc":"http://element-plus.org/zh-CN/","rank":444}', 1, '', 1, '2023-07-22 14:21:40', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2034, '测试内嵌Iframe内链', 3, 'ceshineiqianIframeneilianIframeRouter', 0, '/ceshineiqianIframeneilianIframeLink', 0, 'sdffdf', '{"title":"测试内嵌Iframe内链","showParent":true,"frameSrc":"/druid/login.html","isFrameSrcInternal":true,"rank":444}', 1, '', 1, '2023-07-22 14:22:29', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2035, '一级目录', 2, '', 0, '/yijimulu', 0, 'fsdf', '{"title":"一级目录","showParent":true,"rank":444}', 1, '', 1, '2023-07-22 14:25:55', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2036, '一级菜单xx', 1, 'dsffdsxxxxxxxfsdfsdfroute', 0, '/system/role/index', 0, 'sdfdsfxxx', '{"title":"一级菜单xx","showParent":true,"rank":333}', 1, '', 1, '2023-07-22 14:45:31', 1, '2023-07-22 16:30:30', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2040, '测试按钮11', 0, '', 2035, '', 1, 'sffsdf11', '{"title":"测试按钮11","rank":313}', 1, '', 1, '2023-07-22 15:11:09', 1, '2023-07-22 17:04:34', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2041, '测试按钮', 0, '', 2036, '', 1, 'fsfsfsd', '{"title":"测试按钮","rank":333}', 1, '', 1, '2023-07-22 15:11:37', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2044, '角色管理', 1, 'rolerouter111', 2035, '/system/dept/index', 0, 'fsfsdfsdfsd11', '{"title":"角色管理","showParent":true,"rank":33}', 1, '', 1, '2023-07-22 15:43:04', 1, '2023-07-22 17:04:16', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2045, '二级目录11', 2, '', 2035, '/erjimulu11', 0, 'sdfsdfsdf11', '{"title":"二级目录11","showParent":true,"rank":331}', 0, '', 1, '2023-07-22 15:43:49', 1, '2023-07-22 17:05:06', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2046, '职位管理', 1, 'porstrouter', 2045, '/system/post/index', 0, 'xzcxc', '{"title":"职位管理","showParent":true,"rank":33}', 1, '', 1, '2023-07-22 15:45:01', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2047, '内嵌Iframe2测试', 3, 'neiqianIframe2ceshiIframeRouter', 2035, '/neiqianIframe2ceshiIframeLink', 0, 'sdfdfsd11', '{"title":"内嵌Iframe2测试","showParent":true,"frameSrc":"http://element-plus.org/zh-CN/11","rank":22}', 1, '', 1, '2023-07-22 15:48:44', 1, '2023-07-22 17:04:45', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2049, '外链跳转测试', 4, 'http://element-plus.org/zh-CN/', 2035, '/external', 0, '', '{"title":"外链跳转测试","rank":333}', 1, '', 1, '2023-07-22 15:49:43', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2050, '测试外链3', 4, 'https://element-plus.org/zh-CN/', 2045, '/external', 0, 'fsdfsd', '{"title":"测试外链3","showParent":true,"rank":33}', 1, '', 1, '2023-07-22 16:54:46', null, null, 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (63, 'AgileBoot Github地址', 4, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/external', 0, '', '{"title":"AgileBoot Github地址","icon":"fa-solid:external-link-alt","showParent":true,"rank":9}', 1, 'Agileboot github地址', 0, '2022-05-21 08:30:54', 1, '2023-08-14 23:12:13', 0);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (64, '首页', 2, '', 0, '/global', 0, '121212', '{"title":"首页","showParent":true,"rank":3}', 1, '', 1, '2023-07-24 22:36:03', 1, '2023-07-24 22:38:37', 1);
INSERT INTO sys_menu (menu_id, menu_name, menu_type, router_name, parent_id, path, is_button, permission, meta_info, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (65, '个人中心', 1, 'PersonalCenter', 2053, '/system/user/profile', 0, '434sdf', '{"title":"个人中心","showParent":true,"rank":3}', 1, '', 1, '2023-07-24 22:36:55', null, null, 1);
create table sys_notice
(
@@ -240,34 +183,6 @@ create table sys_notice
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '温馨提醒2018-07-01 AgileBoot新版本发布啦', 2, '新版本内容~~~~~~~~~~', 1, 1, '2022-05-21 08:30:55', 1, '2022-08-29 20:12:37', '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '维护通知2018-07-01 AgileBoot系统凌晨维护', 1, '维护内容', 1, 1, '2022-05-21 08:30:55', null, null, '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '12312312xxxxx', 1, '12313123', 1, 1, '2023-07-11 10:33:17', 1, '2023-07-12 09:18:38', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '2342423', 1, '23423423432', 0, 1, '2023-07-11 21:29:17', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '234324234', 2, '2342342343', 0, 1, '2023-07-11 21:30:28', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '43214234', 1, '23423434324xxxxxxx', 0, 1, '2023-07-11 21:31:12', 1, '2023-07-11 22:21:44', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '23423432', 1, '234234234234xxxxx', 0, 1, '2023-07-11 21:31:18', 1, '2023-07-11 22:21:39', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '23423423', 1, '234234234234234', 0, 1, '2023-07-11 21:31:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '12334', 1, '23423432', 1, 1, '2023-07-11 21:31:40', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '234324', 1, '23424234', 0, 1, '2023-07-11 21:32:05', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '123123', 1, '234234234', 0, 1, '2023-07-11 21:59:29', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '12312321', 1, 'dd', 0, 1, '2023-07-11 22:11:44', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '23423432', 2, '423423432', 1, 1, '2023-07-11 22:12:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '14423', 2, '1312312对对对对对对', 1, 1, '2023-07-12 09:02:43', 1, '2023-07-12 09:44:30', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, 'for test', 2, '21344234324', 0, 1, '2023-07-12 09:46:08', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '2143234234', 2, '234234234234234234', 0, 1, '2023-07-12 09:46:18', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, 'just for test', 2, '123123123', 1, 1, '2023-07-12 09:46:31', 1, '2023-07-12 09:46:40', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '3432432xxx', 2, '1231231231xxx', 1, 1, '2023-07-12 14:07:49', 1, '2023-07-12 14:08:29', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '234234xxx', 1, 'xxxxxx', 0, 1, '2023-07-12 14:08:07', 1, '2023-07-12 14:08:29', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (48, '234324xxxx', 2, '123123123', 1, 1, '2023-07-12 20:09:13', 1, '2023-07-13 10:09:25', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (49, '23432cxxxx', 1, 'xcvxcvcvxcv', 0, 1, '2023-07-13 09:52:23', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (50, '2323', 1, 'xxxxx', 1, 1, '2023-07-13 09:54:44', 1, '2023-07-13 10:02:09', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (51, 'scsfdsfsd', 2, 'xxsdfdsfsdf', 1, 1, '2023-07-13 10:05:51', 1, '2023-07-13 10:06:02', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (52, 'dsadsd', 2, 'asdasdasdxxxx', 0, 1, '2023-07-13 10:05:57', 1, '2023-07-13 10:06:02', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (53, 'sdfsdf', 1, 'sdfdsfsdfsd', 0, 1, '2023-07-13 10:06:08', 1, '2023-07-13 10:06:10', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (54, '312321', 1, '123123', 0, 1, '2023-07-14 15:24:19', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (55, '123', 1, '12312312', 0, 1, '2023-07-14 15:59:42', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (56, '1234xxcsds', 2, 'dfsdfsdfdsf', 1, 1, '2023-07-14 18:21:59', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (57, 'sdfdsfds', 2, 'sdfsdfsdfsdf', 1, 1, '2023-07-14 18:22:05', 1, '2023-07-14 18:22:28', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (58, 'asdasdsad', 1, 'asdasddas', 0, 1, '2023-07-14 18:22:11', 1, '2023-07-14 18:22:28', '', 1);
create table sys_operation_log
(
@@ -295,7 +210,6 @@ create table sys_operation_log
comment '操作日志记录';
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (561, 1, 2, '菜单管理', '/system/menus', 'com.agileboot.admin.controller.system.SysMenuController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"menuName":"","permission":"","parentId":2035,"path":"","isButton":false,"routerName":"","meta":{"showParent":true,"rank":0},"status":1},', '', 1, '', '2023-07-22 17:06:57', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (562, 3, 4, '菜单管理', '/system/menus/2052', 'com.agileboot.admin.controller.system.SysMenuController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{menuId=2052}', '', 1, '', '2023-07-22 17:07:04', 0);
create table sys_post
(
@@ -412,6 +326,7 @@ INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 59);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 60);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 61);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (3, 1);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (111, 1);
create table sys_user
(
@@ -421,7 +336,7 @@ create table sys_user
role_id bigint null comment '角色id',
dept_id bigint null comment '部门ID',
username varchar(64) not null comment '用户账号',
nickname varchar(32) not null comment '用户昵称',
nickname varchar(32) not null comment '用户昵称',
user_type smallint default 0 null comment '用户类型00系统用户',
email varchar(128) default '' null comment '用户邮箱',
phone_number varchar(18) default '' null comment '手机号码',
@@ -441,7 +356,7 @@ create table sys_user
)
comment '用户信息表';
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888889', 0, '', '$2a$10$rb1wRoEIkLbIknREEN1LH.FGs4g0oOS5t6l5LQ793nRaFO.SPHDHy', 1, '127.0.0.1', '2023-07-22 15:38:53', 1, null, '2022-05-21 08:30:54', 1, '2023-07-22 15:38:53', '管理员', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888883', 0, '/profile/avatar/20230725164110_blob_6b7a989b1cdd4dd396665d2cfd2addc5.png', '$2a$10$o55UFZAtyWnDpRV6dvQe8.c/MjlFacC49ASj2usNXm9BY74SYI/uG', 1, '127.0.0.1', '2023-08-14 23:07:03', 1, null, '2022-05-21 08:30:54', 1, '2023-08-14 23:07:03', '管理员', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '/profile/avatar/20230725114818_avatar_b5bf400732bb43369b4df58802049b22.png', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nickname, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '/profile/avatar/20230725114818_avatar_b5bf400732bb43369b4df58802049b22.png', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);

View File

@@ -1,495 +0,0 @@
create table sys_config
(
config_id int auto_increment comment '参数主键'
primary key,
config_name varchar(128) default '' not null comment '配置名称',
config_key varchar(128) default '' not null comment '配置键名',
config_options varchar(1024) default '' not null comment '可选的选项',
config_value varchar(256) default '' not null comment '配置值',
is_allow_change tinyint(1) not null comment '是否允许修改',
creator_id bigint null comment '创建者ID',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
create_time datetime null comment '创建时间',
remark varchar(128) null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除',
constraint config_key_uniq_idx
unique (config_key)
)
comment '参数配置表';
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', '["skin-blue","skin-green","skin-purple","skin-red","skin-yellow"]', 'skin-blue', 1, null, null, '2022-08-28 22:12:19', '2022-05-21 08:30:55', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '', '1234567', 1, null, null, '2022-08-28 21:54:19', '2022-05-21 08:30:55', '初始化密码 123456', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', '["theme-dark","theme-light"]', 'theme-dark', 1, null, null, '2022-08-28 22:12:15', '2022-08-20 08:30:55', '深色主题theme-dark浅色主题theme-light', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (4, '账号自助-验证码开关', 'sys.account.captchaOnOff', '["true","false"]', 'true', 0, null, null, '2022-08-28 22:03:37', '2022-05-21 08:30:55', '是否开启验证码功能true开启false关闭', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', '["true","false"]', 'true', 0, null, 1, '2022-10-05 22:18:57', '2022-05-21 08:30:55', '是否开启注册用户功能true开启false关闭', 0);
create table sys_dept
(
dept_id bigint auto_increment comment '部门id'
primary key,
parent_id bigint default 0 not null comment '父部门id',
ancestors text not null comment '祖级列表',
dept_name varchar(64) default '' not null comment '部门名称',
order_num int default 0 not null comment '显示顺序',
leader_id bigint null,
leader_name varchar(64) null comment '负责人',
phone varchar(16) null comment '联系电话',
email varchar(128) null comment '邮箱',
status smallint default 0 not null comment '部门状态0停用 1启用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '部门表';
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 0, '0', 'AgileBoot科技', 0, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 1, '0,1', '深圳总公司', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 1, '0,1', '长沙分公司', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 2, '0,1,2', '研发部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, 2, '0,1,2', '市场部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, 2, '0,1,2', '测试部门', 3, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, 2, '0,1,2', '财务部门', 4, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, 2, '0,1,2', '运维部门', 5, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, 3, '0,1,3', '市场部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, 3, '0,1,3', '财务部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', null, null, 0);
create table sys_login_info
(
info_id bigint auto_increment comment '访问ID'
primary key,
username varchar(50) default '' not null comment '用户账号',
ip_address varchar(128) default '' not null comment '登录IP地址',
login_location varchar(255) default '' not null comment '登录地点',
browser varchar(50) default '' not null comment '浏览器类型',
operation_system varchar(50) default '' not null comment '操作系统',
status smallint default 0 not null comment '登录状态1成功 0失败',
msg varchar(255) default '' not null comment '提示消息',
login_time datetime null comment '访问时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '系统访问记录';
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (415, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-06-29 22:49:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (416, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:12:30', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (417, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-02 22:16:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (418, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:16:16', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (419, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码错误', '2023-07-02 22:17:31', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (420, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:17:46', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (421, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-04 20:51:05', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (422, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-04 20:58:08', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (423, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-04 21:26:13', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (424, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-04 21:46:11', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (425, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 0, '验证码错误', '2023-07-04 22:00:17', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (426, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-06 22:01:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (427, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-06 22:12:36', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (428, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-06 22:13:52', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (429, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '用户不存在/密码错误', '2023-07-07 11:06:46', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (430, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '用户不存在/密码错误', '2023-07-07 11:09:26', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (431, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 11:09:27', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (432, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 11:09:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (433, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 11:09:29', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (434, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 11:09:30', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (435, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 11:09:31', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (436, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '用户不存在/密码错误', '2023-07-07 11:09:34', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (437, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 11:21:51', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (438, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 14:16:47', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (439, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 14:38:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (440, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 14:39:24', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (441, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 15:04:45', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (442, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 15:10:14', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (443, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 15:18:24', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (444, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 15:20:11', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (445, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 16:00:02', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (446, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:00:12', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (447, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:07:55', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (448, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:09:20', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (449, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:17:43', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (450, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:19:03', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (451, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:23:32', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (452, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:31:17', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (453, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:53:39', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (454, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:54:09', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (455, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:54:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (456, 'admin', '127.0.0.1', '内网IP', 'Firefox 11', 'Mac OS X', 1, '登录成功', '2023-07-07 16:59:47', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (457, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 17:41:22', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (458, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 17:47:40', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (459, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 17:48:24', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (460, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 17:50:23', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (461, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 18:04:26', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (462, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码错误', '2023-07-07 18:04:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (463, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-07 18:04:31', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (464, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 18:04:35', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (465, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 18:04:57', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (466, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 18:19:11', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (467, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 20:52:42', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (468, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 21:42:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (469, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-07 21:49:29', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (470, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-08 08:49:16', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (471, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-08 16:18:10', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (472, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-10 09:52:24', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (473, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-10 10:28:25', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (474, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-10 14:08:20', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (475, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-10 19:02:09', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (476, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-10 21:23:49', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (477, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 09:30:39', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (478, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 10:00:47', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (479, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 10:16:22', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (480, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 10:25:40', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (481, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 14:55:41', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (482, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 15:59:31', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (483, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 16:01:12', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (484, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 16:52:11', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (485, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 16:54:56', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (486, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 16:58:38', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (487, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 17:02:20', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (488, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 17:03:44', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (489, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 17:05:03', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (490, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 17:09:03', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (491, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 19:47:23', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (492, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 20:10:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (493, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-11 21:59:20', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (494, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 08:48:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (495, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 10:29:28', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (496, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 10:32:49', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (497, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 10:45:11', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (498, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 11:37:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (499, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-12 15:12:50', 0);
create table sys_menu
(
menu_id bigint auto_increment comment '菜单ID'
primary key,
menu_name varchar(64) not null comment '菜单名称',
redirect varchar(512) null,
route_name varchar(255) default '' not null comment '路由名称(前端逻辑需要使用)',
parent_id bigint default 0 not null comment '父菜单ID',
path varchar(255) null comment '组件路径',
component varchar(255) default '' null comment '组件(该参数暂无使用)',
`rank` int default 0 not null comment '显示顺序',
query varchar(255) null comment '路由参数',
is_button tinyint default 0 not null comment '是否按钮',
permission varchar(128) null comment '权限标识',
meta_info varchar(1024) default '{}' not null comment '路由元信息主要由前端处理',
status smallint default 0 not null comment '菜单状态1启用 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(256) default '' null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '菜单权限表';
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '系统管理', null, 'System', 0, '/system', '/system', 1, '', 0, '', '{"title":"系统管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统管理目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '系统监控', null, 'SystemMonitor', 0, '/monitor', '/monitor', 2, '', 0, '', '{"title":"系统监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统监控目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '系统工具', null, 'SystemTool', 0, '/tool', '/tool', 3, '', 0, '', '{"title":"系统工具"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统工具目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (4, 'AgileBoot官网', null, 'OfficialWeb', 0, '/test', 'https://juejin.cn/column/7159946528827080734', 4, '', 0, '', '{"title":"AgileBoot官网","frameSrc": "https://element-plus.org/zh-CN/"}', 1, 0, '2022-05-21 08:30:54', null, null, 'Agileboot官网地址', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (5, '用户管理', null, 'SystemUser', 1, '/system/user/index', 'user', 1, '', 0, 'system:user:list', '{"title":"用户管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '用户管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (6, '角色管理', null, 'SystemRole', 1, '/system/role/index', 'role', 2, '', 0, 'system:role:list', '{"title":"角色管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '角色管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (7, '菜单管理', null, 'MenuManagement', 1, '/system/menu/index', 'menu', 3, '', 0, 'system:menu:list', '{"title":"菜单管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '菜单管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (8, '部门管理', null, 'Department', 1, '/system/dept/index', 'dept', 4, '', 0, 'system:dept:list', '{"title":"部门管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '部门管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (9, '岗位管理', null, 'Post', 1, '/system/post/index', 'post', 5, '', 0, 'system:post:list', '{"title":"岗位管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '岗位管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (10, '参数设置', null, 'Config', 1, '/system/config/index', 'config', 7, '', 0, 'system:config:list', '{"title":"参数设置"}', 1, 0, '2022-05-21 08:30:54', null, null, '参数设置菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (11, '通知公告', null, 'SystemNotice', 1, '/system/notice/index', 'notice', 8, '', 0, 'system:notice:list', '{"title":"通知公告"}', 1, 0, '2022-05-21 08:30:54', null, null, '通知公告菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (12, '日志管理', '/monitor/operationLog/index', 'LogManagement', 1, '/system/log', 'log', 9, '', 0, '', '{"title":"日志管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '日志管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (13, '在线用户', null, 'OnlineUser', 2, '/monitor/online/index', 'online', 1, '', 0, 'monitor:online:list', '{"title":"在线用户"}', 1, 0, '2022-05-21 08:30:54', null, null, '在线用户菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (14, '数据监控', null, 'DataMonitor', 2, '/monitor/druid/index', 'druid', 3, '', 0, 'monitor:druid:list', '{"title":"数据监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '数据监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (15, '服务监控', null, 'ServerMonitor', 2, '/monitor/server/index', 'server', 4, '', 0, 'monitor:server:list', '{"title":"服务监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '服务监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (16, '缓存监控', null, 'CacheMonitor', 2, '/monitor/cache/index', 'cache', 5, '', 0, 'monitor:cache:list', '{"title":"缓存监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '缓存监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (17, '系统接口', null, 'SystemAPI', 3, '/tool/swagger/index', 'swagger', 3, '', 0, 'tool:swagger:list', '{"title":"系统接口"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统接口菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (18, '操作日志', null, 'OperationLog', 12, '/monitor/operationLog/index', 'operlog', 1, '', 0, 'monitor:operlog:list', '{"title":"操作日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '操作日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (19, '登录日志', null, 'LoginLog', 12, '/monitor/loginInfo/index', 'logininfor', 2, '', 0, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '登录日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (20, '用户查询', null, ' ', 5, '', '', 1, '', 1, 'system:user:query', '{"title":"用户查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (21, '用户新增', null, ' ', 5, '', '', 2, '', 1, 'system:user:add', '{"title":"用户新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (22, '用户修改', null, ' ', 5, '', '', 3, '', 1, 'system:user:edit', '{"title":"用户修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (23, '用户删除', null, ' ', 5, '', '', 4, '', 1, 'system:user:remove', '{"title":"用户删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (24, '用户导出', null, ' ', 5, '', '', 5, '', 1, 'system:user:export', '{"title":"用户导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (25, '用户导入', null, ' ', 5, '', '', 6, '', 1, 'system:user:import', '{"title":"用户导入"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (26, '重置密码', null, ' ', 5, '', '', 7, '', 1, 'system:user:resetPwd', '{"title":"重置密码"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (27, '角色查询', null, ' ', 6, '', '', 1, '', 1, 'system:role:query', '{"title":"角色查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (28, '角色新增', null, ' ', 6, '', '', 2, '', 1, 'system:role:add', '{"title":"角色新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (29, '角色修改', null, ' ', 6, '', '', 3, '', 1, 'system:role:edit', '{"title":"角色修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (30, '角色删除', null, ' ', 6, '', '', 4, '', 1, 'system:role:remove', '{"title":"角色删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '角色导出', null, ' ', 6, '', '', 5, '', 1, 'system:role:export', '{"title":"角色导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '菜单查询', null, ' ', 7, '', '', 1, '', 1, 'system:menu:query', '{"title":"菜单查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '菜单新增', null, ' ', 7, '', '', 2, '', 1, 'system:menu:add', '{"title":"菜单新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '菜单修改', null, ' ', 7, '', '', 3, '', 1, 'system:menu:edit', '{"title":"菜单修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '菜单删除', null, ' ', 7, '', '', 4, '', 1, 'system:menu:remove', '{"title":"菜单删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '部门查询', null, ' ', 8, '', '', 1, '', 1, 'system:dept:query', '{"title":"部门查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '部门新增', null, ' ', 8, '', '', 2, '', 1, 'system:dept:add', '{"title":"部门新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '部门修改', null, ' ', 8, '', '', 3, '', 1, 'system:dept:edit', '{"title":"部门修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '部门删除', null, ' ', 8, '', '', 4, '', 1, 'system:dept:remove', '{"title":"部门删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '岗位查询', null, ' ', 9, '', '', 1, '', 1, 'system:post:query', '{"title":"岗位查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '岗位新增', null, ' ', 9, '', '', 2, '', 1, 'system:post:add', '{"title":"岗位新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '岗位修改', null, ' ', 9, '', '', 3, '', 1, 'system:post:edit', '{"title":"岗位修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, '岗位删除', null, ' ', 9, '', '', 4, '', 1, 'system:post:remove', '{"title":"岗位删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '岗位导出', null, ' ', 9, '', '', 5, '', 1, 'system:post:export', '{"title":"岗位导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, '参数查询', null, ' ', 10, '', '#', 1, '', 1, 'system:config:query', '{"title":"参数查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '参数新增', null, ' ', 10, '', '#', 2, '', 1, 'system:config:add', '{"title":"参数新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '参数修改', null, ' ', 10, '', '#', 3, '', 1, 'system:config:edit', '{"title":"参数修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (48, '参数删除', null, ' ', 10, '', '#', 4, '', 1, 'system:config:remove', '{"title":"参数删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (49, '参数导出', null, ' ', 10, '', '#', 5, '', 1, 'system:config:export', '{"title":"参数导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (50, '公告查询', null, ' ', 11, '', '#', 1, '', 1, 'system:notice:query', '{"title":"公告查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (51, '公告新增', null, ' ', 11, '', '#', 2, '', 1, 'system:notice:add', '{"title":"公告新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (52, '公告修改', null, ' ', 11, '', '#', 3, '', 1, 'system:notice:edit', '{"title":"公告修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (53, '公告删除', null, ' ', 11, '', '#', 4, '', 1, 'system:notice:remove', '{"title":"公告删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (54, '操作查询', null, ' ', 18, '', '#', 1, '', 1, 'monitor:operlog:query', '{"title":"操作查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (55, '操作删除', null, ' ', 18, '', '#', 2, '', 1, 'monitor:operlog:remove', '{"title":"操作删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (56, '日志导出', null, ' ', 18, '', '#', 4, '', 1, 'monitor:operlog:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (57, '登录查询', null, ' ', 19, '', '#', 1, '', 1, 'monitor:logininfor:query', '{"title":"登录查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (58, '登录删除', null, ' ', 19, '', '#', 2, '', 1, 'monitor:logininfor:remove', '{"title":"登录删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (59, '日志导出', null, ' ', 19, '', '#', 3, '', 1, 'monitor:logininfor:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (60, '在线查询', null, ' ', 13, '', '#', 1, '', 1, 'monitor:online:query', '{"title":"在线查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (61, '批量强退', null, ' ', 13, '', '#', 2, '', 1, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (62, '单条强退', null, ' ', 13, '', '#', 3, '', 1, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (63, 'AgileBoot Github地址', null, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/anything', '/anything', 4, '', 0, '', '{"title":"Github地址"}', 1, 0, '2022-05-21 08:30:54', null, null, 'Agileboot github地址', 0);
create table sys_notice
(
notice_id int auto_increment comment '公告ID'
primary key,
notice_title varchar(64) not null comment '公告标题',
notice_type smallint not null comment '公告类型1通知 2公告',
notice_content text null comment '公告内容',
status smallint default 0 not null comment '公告状态1正常 0关闭',
creator_id bigint not null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(255) default '' not null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '通知公告表';
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '温馨提醒2018-07-01 AgileBoot新版本发布啦', 2, '新版本内容~~~~~~~~~~', 1, 1, '2022-05-21 08:30:55', 1, '2022-08-29 20:12:37', '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '维护通知2018-07-01 AgileBoot系统凌晨维护', 1, '维护内容', 1, 1, '2022-05-21 08:30:55', null, null, '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '12312312xxxxx', 1, '12313123', 1, 1, '2023-07-11 10:33:17', 1, '2023-07-12 09:18:38', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '2342423', 1, '23423423432', 0, 1, '2023-07-11 21:29:17', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '234324234', 2, '2342342343', 0, 1, '2023-07-11 21:30:28', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '43214234', 1, '23423434324xxxxxxx', 0, 1, '2023-07-11 21:31:12', 1, '2023-07-11 22:21:44', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '23423432', 1, '234234234234xxxxx', 0, 1, '2023-07-11 21:31:18', 1, '2023-07-11 22:21:39', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '23423423', 1, '234234234234234', 0, 1, '2023-07-11 21:31:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '12334', 1, '23423432', 1, 1, '2023-07-11 21:31:40', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '234324', 1, '23424234', 0, 1, '2023-07-11 21:32:05', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '123123', 1, '234234234', 0, 1, '2023-07-11 21:59:29', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '12312321', 1, 'dd', 0, 1, '2023-07-11 22:11:44', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '23423432', 2, '423423432', 1, 1, '2023-07-11 22:12:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '14423', 2, '1312312对对对对对对', 1, 1, '2023-07-12 09:02:43', 1, '2023-07-12 09:44:30', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, 'for test', 2, '21344234324', 0, 1, '2023-07-12 09:46:08', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '2143234234', 2, '234234234234234234', 0, 1, '2023-07-12 09:46:18', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, 'just for test', 2, '123123123', 1, 1, '2023-07-12 09:46:31', 1, '2023-07-12 09:46:40', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '3432432xxx', 2, '1231231231xxx', 1, 1, '2023-07-12 14:07:49', 1, '2023-07-12 14:08:29', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '234234xxx', 1, 'xxxxxx', 0, 1, '2023-07-12 14:08:07', 1, '2023-07-12 14:08:29', '', 1);
create table sys_operation_log
(
operation_id bigint auto_increment comment '日志主键'
primary key,
business_type smallint default 0 not null comment '业务类型0其它 1新增 2修改 3删除',
request_method smallint default 0 not null comment '请求方式',
request_module varchar(64) default '' not null comment '请求模块',
request_url varchar(256) default '' not null comment '请求URL',
called_method varchar(128) default '' not null comment '调用方法',
operator_type smallint default 0 not null comment '操作类别0其它 1后台用户 2手机端用户',
user_id bigint default 0 null comment '用户ID',
username varchar(32) default '' null comment '操作人员',
operator_ip varchar(128) default '' null comment '操作人员ip',
operator_location varchar(256) default '' null comment '操作地点',
dept_id bigint default 0 null comment '部门ID',
dept_name varchar(64) null comment '部门名称',
operation_param varchar(2048) default '' null comment '请求参数',
operation_result varchar(2048) default '' null comment '返回参数',
status smallint default 1 not null comment '操作状态1正常 0异常',
error_stack varchar(2048) default '' null comment '错误消息',
operation_time datetime not null comment '操作时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '操作日志记录';
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (379, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"123123","noticeContent":"12313123","status":"1"},', '', 1, '', '2023-07-11 10:33:17', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (380, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 21:19:42', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (381, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 21:25:07', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (382, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"2342423","noticeContent":"23423423432","status":"0"},', '', 1, '', '2023-07-11 21:29:17', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (383, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"234324234","noticeContent":"2342342343","status":"0"},', '', 1, '', '2023-07-11 21:30:28', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (384, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"43214234","noticeContent":"23423434324","status":"0"},', '', 1, '', '2023-07-11 21:31:12', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (385, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"23423432","noticeContent":"234234234234","status":"0"},', '', 1, '', '2023-07-11 21:31:18', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (386, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"23423423","noticeContent":"234234234234234","status":"0"},', '', 1, '', '2023-07-11 21:31:26', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (387, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"12334","noticeContent":"23423432","status":"1"},', '', 1, '', '2023-07-11 21:31:40', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (388, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"234324","noticeContent":"23424234","status":"0"},', '', 1, '', '2023-07-11 21:32:05', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (389, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"123123","noticeContent":"234234234","status":"0"},', '', 1, '', '2023-07-11 21:59:29', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (390, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:00:52', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (391, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:00:59', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (392, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:05:45', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (393, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:05:50', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (394, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"12312321","noticeContent":"dd","status":"0"},', '', 1, '', '2023-07-11 22:11:44', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (395, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:11:48', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (396, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:11:55', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (397, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"23423432","noticeContent":"423423432","status":"1"},', '', 1, '', '2023-07-11 22:12:26', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (398, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:30', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (399, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:53', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (400, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:55', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (401, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-11 22:21:39', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (402, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-11 22:21:44', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (403, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"14423","noticeContent":"1312312对对对对对对","status":"1"},', '', 1, '', '2023-07-12 09:02:43', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (404, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-12 09:18:38', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (405, 3, 4, '通知公告', '/system/notice/42', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=42}', '', 1, '', '2023-07-12 09:44:30', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (406, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"for test","noticeContent":"21344234324","status":"0"},', '', 1, '', '2023-07-12 09:46:08', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (407, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"2143234234","noticeContent":"234234234234234234","status":"0"},', '', 1, '', '2023-07-12 09:46:18', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (408, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"just for test","noticeContent":"123123123","status":"1"},', '', 1, '', '2023-07-12 09:46:31', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (409, 3, 4, '通知公告', '/system/notice/45', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=45}', '', 1, '', '2023-07-12 09:46:40', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (410, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"3432432","noticeContent":"1231231231","status":"1"},', '', 1, '', '2023-07-12 14:07:49', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (411, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-12 14:07:56', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (412, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"234234xxx","noticeContent":"xxxxxx","status":"0"},', '', 1, '', '2023-07-12 14:08:07', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (413, 3, 4, '通知公告', '/system/notice/46,47', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=46,47}', '', 1, '', '2023-07-12 14:08:29', 0);
create table sys_post
(
post_id bigint auto_increment comment '岗位ID'
primary key,
post_code varchar(64) not null comment '岗位编码',
post_name varchar(64) not null comment '岗位名称',
post_sort int not null comment '显示顺序',
status smallint not null comment '状态1正常 0停用',
remark varchar(512) null comment '备注',
creator_id bigint null,
create_time datetime null comment '创建时间',
updater_id bigint null,
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '岗位信息表';
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 'ceo', '董事长', 1, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 'se', '项目经理', 2, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 'hr', '人力资源', 3, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'user', '普通员工', 5, 0, '', null, '2022-05-21 08:30:54', null, null, 0);
create table sys_role
(
role_id bigint auto_increment comment '角色ID'
primary key,
role_name varchar(32) not null comment '角色名称',
role_key varchar(128) not null comment '角色权限字符串',
role_sort int not null comment '显示顺序',
data_scope smallint default 1 null comment '数据范围1全部数据权限 2自定数据权限 3: 本部门数据权限 4: 本部门及以下数据权限 5: 本人权限)',
dept_id_set varchar(1024) default '' null comment '角色所拥有的部门数据权限',
status smallint not null comment '角色状态1正常 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '角色信息表';
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '超级管理员', 'admin', 1, 1, '', 1, null, '2022-05-21 08:30:54', null, null, '超级管理员', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '普通角色', 'common', 3, 2, '', 1, null, '2022-05-21 08:30:54', null, null, '普通角色', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '闲置角色', 'unused', 4, 2, '', 0, null, '2022-05-21 08:30:54', null, null, '未使用的角色', 0);
create table sys_role_menu
(
role_id bigint not null comment '角色ID',
menu_id bigint not null comment '菜单ID',
primary key (role_id, menu_id)
)
comment '角色和菜单关联表';
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 1);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 2);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 3);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 4);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 5);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 6);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 7);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 8);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 9);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 10);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 11);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 12);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 13);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 14);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 15);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 16);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 17);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 18);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 19);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 20);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 21);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 22);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 23);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 24);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 25);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 26);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 27);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 28);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 29);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 30);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 31);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 32);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 33);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 34);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 35);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 36);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 37);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 38);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 39);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 40);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 41);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 42);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 43);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 44);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 45);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 46);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 47);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 48);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 49);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 50);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 51);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 52);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 53);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 54);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 55);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 56);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 57);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 58);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 59);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 60);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 61);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (3, 1);
create table sys_user
(
user_id bigint auto_increment comment '用户ID'
primary key,
post_id bigint null comment '职位id',
role_id bigint null comment '角色id',
dept_id bigint null comment '部门ID',
username varchar(64) not null comment '用户账号',
nick_name varchar(32) not null comment '用户昵称',
user_type smallint default 0 null comment '用户类型00系统用户',
email varchar(128) default '' null comment '用户邮箱',
phone_number varchar(18) default '' null comment '手机号码',
sex smallint default 0 null comment '用户性别0男 1女 2未知',
avatar varchar(512) default '' null comment '头像地址',
password varchar(128) default '' not null comment '密码',
status smallint default 0 not null comment '帐号状态1正常 2停用 3冻结',
login_ip varchar(128) default '' null comment '最后登录IP',
login_date datetime null comment '最后登录时间',
is_admin tinyint(1) default 0 not null comment '超级管理员标志1是0否',
creator_id bigint null comment '更新者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '用户信息表';
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888889', 0, '', '$2a$10$rb1wRoEIkLbIknREEN1LH.FGs4g0oOS5t6l5LQ793nRaFO.SPHDHy', 1, '127.0.0.1', '2023-07-12 15:12:50', 1, null, '2022-05-21 08:30:54', 1, '2023-07-12 15:12:50', '管理员', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);

View File

@@ -1,448 +0,0 @@
create table sys_config
(
config_id int auto_increment comment '参数主键'
primary key,
config_name varchar(128) default '' not null comment '配置名称',
config_key varchar(128) default '' not null comment '配置键名',
config_options varchar(1024) default '' not null comment '可选的选项',
config_value varchar(256) default '' not null comment '配置值',
is_allow_change tinyint(1) not null comment '是否允许修改',
creator_id bigint null comment '创建者ID',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
create_time datetime null comment '创建时间',
remark varchar(128) null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除',
constraint config_key_uniq_idx
unique (config_key)
)
comment '参数配置表';
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', '["skin-blue","skin-green","skin-purple","skin-red","skin-yellow"]', 'skin-blue', 1, null, null, '2022-08-28 22:12:19', '2022-05-21 08:30:55', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '', '1234567', 1, null, null, '2022-08-28 21:54:19', '2022-05-21 08:30:55', '初始化密码 123456', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', '["theme-dark","theme-light"]', 'theme-dark', 1, null, null, '2022-08-28 22:12:15', '2022-08-20 08:30:55', '深色主题theme-dark浅色主题theme-light', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (4, '账号自助-验证码开关', 'sys.account.captchaOnOff', '["true","false"]', 'true', 0, null, null, '2022-08-28 22:03:37', '2022-05-21 08:30:55', '是否开启验证码功能true开启false关闭', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', '["true","false"]', 'true', 0, null, 1, '2022-10-05 22:18:57', '2022-05-21 08:30:55', '是否开启注册用户功能true开启false关闭', 0);
create table sys_dept
(
dept_id bigint auto_increment comment '部门id'
primary key,
parent_id bigint default 0 not null comment '父部门id',
ancestors text not null comment '祖级列表',
dept_name varchar(64) default '' not null comment '部门名称',
order_num int default 0 not null comment '显示顺序',
leader_id bigint null,
leader_name varchar(64) null comment '负责人',
phone varchar(16) null comment '联系电话',
email varchar(128) null comment '邮箱',
status smallint default 0 not null comment '部门状态0停用 1启用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '部门表';
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 0, '0', 'AgileBoot科技', 0, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 1, '0,1', '深圳总公司', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 1, '0,1', '长沙分公司', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 2, '0,1,2', '研发部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, 2, '0,1,2', '市场部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, 2, '0,1,2', '测试部门', 3, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, 2, '0,1,2', '财务部门', 4, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, 2, '0,1,2', '运维部门', 5, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, 3, '0,1,3', '市场部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, 3, '0,1,3', '财务部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', null, null, 0);
create table sys_login_info
(
info_id bigint auto_increment comment '访问ID'
primary key,
username varchar(50) default '' not null comment '用户账号',
ip_address varchar(128) default '' not null comment '登录IP地址',
login_location varchar(255) default '' not null comment '登录地点',
browser varchar(50) default '' not null comment '浏览器类型',
operation_system varchar(50) default '' not null comment '操作系统',
status smallint default 0 not null comment '登录状态1成功 0失败',
msg varchar(255) default '' not null comment '提示消息',
login_time datetime null comment '访问时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '系统访问记录';
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (415, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-06-29 22:49:37', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (416, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:12:30', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (417, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 0, '验证码过期', '2023-07-02 22:16:06', 0);
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (418, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-07-02 22:16:16', 0);
create table sys_menu
(
menu_id bigint auto_increment comment '菜单ID'
primary key,
menu_name varchar(64) not null comment '菜单名称',
redirect varchar(512) null,
route_name varchar(255) default '' not null comment '路由名称(前端逻辑需要使用)',
parent_id bigint default 0 not null comment '父菜单ID',
path varchar(255) null comment '组件路径',
component varchar(255) default '' null comment '组件(该参数暂无使用)',
`rank` int default 0 not null comment '显示顺序',
query varchar(255) null comment '路由参数',
is_button tinyint default 0 not null comment '是否按钮',
permission varchar(128) null comment '权限标识',
meta_info varchar(1024) default '{}' not null comment '路由元信息主要由前端处理',
status smallint default 0 not null comment '菜单状态1启用 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(256) default '' null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '菜单权限表';
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '系统管理', null, 'System', 0, '/system', '/system', 1, '', 0, '', '{"title":"系统管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统管理目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '系统监控', null, 'SystemMonitor', 0, '/monitor', '/monitor', 2, '', 0, '', '{"title":"系统监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统监控目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '系统工具', null, 'SystemTool', 0, '/tool', '/tool', 3, '', 0, '', '{"title":"系统工具"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统工具目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (4, 'AgileBoot官网', null, 'OfficialWeb', 0, '/test', 'https://juejin.cn/column/7159946528827080734', 4, '', 0, '', '{"title":"AgileBoot官网","frameSrc": "https://element-plus.org/zh-CN/"}', 1, 0, '2022-05-21 08:30:54', null, null, 'Agileboot官网地址', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (5, '用户管理', null, 'SystemUser', 1, '/system/user/index', 'user', 1, '', 0, 'system:user:list', '{"title":"用户管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '用户管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (6, '角色管理', null, 'SystemRole', 1, '/system/role/index', 'role', 2, '', 0, 'system:role:list', '{"title":"角色管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '角色管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (7, '菜单管理', null, 'MenuManagement', 1, '/system/menu/index', 'menu', 3, '', 0, 'system:menu:list', '{"title":"菜单管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '菜单管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (8, '部门管理', null, 'Department', 1, '/system/dept/index', 'dept', 4, '', 0, 'system:dept:list', '{"title":"部门管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '部门管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (9, '岗位管理', null, 'Post', 1, '/system/post/index', 'post', 5, '', 0, 'system:post:list', '{"title":"岗位管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '岗位管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (10, '参数设置', null, 'Config', 1, '/system/config/index', 'config', 7, '', 0, 'system:config:list', '{"title":"参数设置"}', 1, 0, '2022-05-21 08:30:54', null, null, '参数设置菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (11, '通知公告', null, 'SystemNotice', 1, '/system/notice/index', 'notice', 8, '', 0, 'system:notice:list', '{"title":"通知公告"}', 1, 0, '2022-05-21 08:30:54', null, null, '通知公告菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (12, '日志管理', '/monitor/operationLog/index', 'LogManagement', 1, '/system/log', 'log', 9, '', 0, '', '{"title":"日志管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '日志管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (13, '在线用户', null, 'OnlineUser', 2, '/monitor/online/index', 'online', 1, '', 0, 'monitor:online:list', '{"title":"在线用户"}', 1, 0, '2022-05-21 08:30:54', null, null, '在线用户菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (14, '数据监控', null, 'DataMonitor', 2, '/monitor/druid/index', 'druid', 3, '', 0, 'monitor:druid:list', '{"title":"数据库监控","frameSrc": "/druid/login.html", "isFrameSrcInternal": true}', 1, 0, '2022-05-21 08:30:54', null, null, '数据监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (15, '服务监控', null, 'ServerMonitor', 2, '/monitor/server/index', 'server', 4, '', 0, 'monitor:server:list', '{"title":"服务器监控","frameSrc": "/actuatorAdmin", "isFrameSrcInternal": true}', 1, 0, '2022-05-21 08:30:54', null, null, '服务监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (16, '缓存监控', null, 'CacheMonitor', 2, '/monitor/cache/index', 'cache', 5, '', 0, 'monitor:cache:list', '{"title":"缓存监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '缓存监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (17, '系统接口', null, 'SystemAPI', 3, '/tool/swagger/index', 'swagger', 3, '', 0, 'tool:swagger:list', '{"title":"接口文档","showParent":"true","frameSrc": "/swagger-ui/index.html", "isFrameSrcInternal": true}', 1, 0, '2022-05-21 08:30:54', null, null, '系统接口菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (18, '操作日志', null, 'OperationLog', 12, '/system/log/operationLog/index', 'operlog', 1, '', 0, 'monitor:operlog:list', '{"title":"操作日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '操作日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (19, '登录日志', null, 'LoginLog', 12, '/system/log/loginLog/index', 'loginLog', 2, '', 0, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '登录日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (20, '用户查询', null, ' ', 5, '', '', 1, '', 1, 'system:user:query', '{"title":"用户查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (21, '用户新增', null, ' ', 5, '', '', 2, '', 1, 'system:user:add', '{"title":"用户新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (22, '用户修改', null, ' ', 5, '', '', 3, '', 1, 'system:user:edit', '{"title":"用户修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (23, '用户删除', null, ' ', 5, '', '', 4, '', 1, 'system:user:remove', '{"title":"用户删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (24, '用户导出', null, ' ', 5, '', '', 5, '', 1, 'system:user:export', '{"title":"用户导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (25, '用户导入', null, ' ', 5, '', '', 6, '', 1, 'system:user:import', '{"title":"用户导入"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (26, '重置密码', null, ' ', 5, '', '', 7, '', 1, 'system:user:resetPwd', '{"title":"重置密码"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (27, '角色查询', null, ' ', 6, '', '', 1, '', 1, 'system:role:query', '{"title":"角色查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (28, '角色新增', null, ' ', 6, '', '', 2, '', 1, 'system:role:add', '{"title":"角色新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (29, '角色修改', null, ' ', 6, '', '', 3, '', 1, 'system:role:edit', '{"title":"角色修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (30, '角色删除', null, ' ', 6, '', '', 4, '', 1, 'system:role:remove', '{"title":"角色删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '角色导出', null, ' ', 6, '', '', 5, '', 1, 'system:role:export', '{"title":"角色导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '菜单查询', null, ' ', 7, '', '', 1, '', 1, 'system:menu:query', '{"title":"菜单查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '菜单新增', null, ' ', 7, '', '', 2, '', 1, 'system:menu:add', '{"title":"菜单新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '菜单修改', null, ' ', 7, '', '', 3, '', 1, 'system:menu:edit', '{"title":"菜单修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '菜单删除', null, ' ', 7, '', '', 4, '', 1, 'system:menu:remove', '{"title":"菜单删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '部门查询', null, ' ', 8, '', '', 1, '', 1, 'system:dept:query', '{"title":"部门查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '部门新增', null, ' ', 8, '', '', 2, '', 1, 'system:dept:add', '{"title":"部门新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '部门修改', null, ' ', 8, '', '', 3, '', 1, 'system:dept:edit', '{"title":"部门修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '部门删除', null, ' ', 8, '', '', 4, '', 1, 'system:dept:remove', '{"title":"部门删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '岗位查询', null, ' ', 9, '', '', 1, '', 1, 'system:post:query', '{"title":"岗位查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '岗位新增', null, ' ', 9, '', '', 2, '', 1, 'system:post:add', '{"title":"岗位新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '岗位修改', null, ' ', 9, '', '', 3, '', 1, 'system:post:edit', '{"title":"岗位修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, '岗位删除', null, ' ', 9, '', '', 4, '', 1, 'system:post:remove', '{"title":"岗位删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '岗位导出', null, ' ', 9, '', '', 5, '', 1, 'system:post:export', '{"title":"岗位导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, '参数查询', null, ' ', 10, '', '#', 1, '', 1, 'system:config:query', '{"title":"参数查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '参数新增', null, ' ', 10, '', '#', 2, '', 1, 'system:config:add', '{"title":"参数新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '参数修改', null, ' ', 10, '', '#', 3, '', 1, 'system:config:edit', '{"title":"参数修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (48, '参数删除', null, ' ', 10, '', '#', 4, '', 1, 'system:config:remove', '{"title":"参数删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (49, '参数导出', null, ' ', 10, '', '#', 5, '', 1, 'system:config:export', '{"title":"参数导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (50, '公告查询', null, ' ', 11, '', '#', 1, '', 1, 'system:notice:query', '{"title":"公告查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (51, '公告新增', null, ' ', 11, '', '#', 2, '', 1, 'system:notice:add', '{"title":"公告新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (52, '公告修改', null, ' ', 11, '', '#', 3, '', 1, 'system:notice:edit', '{"title":"公告修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (53, '公告删除', null, ' ', 11, '', '#', 4, '', 1, 'system:notice:remove', '{"title":"公告删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (54, '操作查询', null, ' ', 18, '', '#', 1, '', 1, 'monitor:operlog:query', '{"title":"操作查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (55, '操作删除', null, ' ', 18, '', '#', 2, '', 1, 'monitor:operlog:remove', '{"title":"操作删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (56, '日志导出', null, ' ', 18, '', '#', 4, '', 1, 'monitor:operlog:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (57, '登录查询', null, ' ', 19, '', '#', 1, '', 1, 'monitor:logininfor:query', '{"title":"登录查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (58, '登录删除', null, ' ', 19, '', '#', 2, '', 1, 'monitor:logininfor:remove', '{"title":"登录删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (59, '日志导出', null, ' ', 19, '', '#', 3, '', 1, 'monitor:logininfor:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (60, '在线查询', null, ' ', 13, '', '#', 1, '', 1, 'monitor:online:query', '{"title":"在线查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (61, '批量强退', null, ' ', 13, '', '#', 2, '', 1, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (62, '单条强退', null, ' ', 13, '', '#', 3, '', 1, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, redirect, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (63, 'AgileBoot Github地址', null, 'https://github.com/valarchie/AgileBoot-Back-End', 0, '/anything', '/anything', 4, '', 0, '', '{"title":"Github地址"}', 1, 0, '2022-05-21 08:30:54', null, null, 'Agileboot github地址', 0);
create table sys_notice
(
notice_id int auto_increment comment '公告ID'
primary key,
notice_title varchar(64) not null comment '公告标题',
notice_type smallint not null comment '公告类型1通知 2公告',
notice_content text null comment '公告内容',
status smallint default 0 not null comment '公告状态1正常 0关闭',
creator_id bigint not null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(255) default '' not null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '通知公告表';
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '温馨提醒2018-07-01 AgileBoot新版本发布啦', 2, '新版本内容~~~~~~~~~~', 1, 1, '2022-05-21 08:30:55', 1, '2022-08-29 20:12:37', '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '维护通知2018-07-01 AgileBoot系统凌晨维护', 1, '维护内容', 1, 1, '2022-05-21 08:30:55', null, null, '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '12312312xxxxx', 1, '12313123', 1, 1, '2023-07-11 10:33:17', 1, '2023-07-12 09:18:38', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '2342423', 1, '23423423432', 0, 1, '2023-07-11 21:29:17', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '234324234', 2, '2342342343', 0, 1, '2023-07-11 21:30:28', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '43214234', 1, '23423434324xxxxxxx', 0, 1, '2023-07-11 21:31:12', 1, '2023-07-11 22:21:44', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '23423432', 1, '234234234234xxxxx', 0, 1, '2023-07-11 21:31:18', 1, '2023-07-11 22:21:39', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '23423423', 1, '234234234234234', 0, 1, '2023-07-11 21:31:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '12334', 1, '23423432', 1, 1, '2023-07-11 21:31:40', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '234324', 1, '23424234', 0, 1, '2023-07-11 21:32:05', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '123123', 1, '234234234', 0, 1, '2023-07-11 21:59:29', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '12312321', 1, 'dd', 0, 1, '2023-07-11 22:11:44', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '23423432', 2, '423423432', 1, 1, '2023-07-11 22:12:26', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '14423', 2, '1312312对对对对对对', 1, 1, '2023-07-12 09:02:43', 1, '2023-07-12 09:44:30', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, 'for test', 2, '21344234324', 0, 1, '2023-07-12 09:46:08', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '2143234234', 2, '234234234234234234', 0, 1, '2023-07-12 09:46:18', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, 'just for test', 2, '123123123', 1, 1, '2023-07-12 09:46:31', 1, '2023-07-12 09:46:40', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '3432432xxx', 2, '1231231231xxx', 1, 1, '2023-07-12 14:07:49', 1, '2023-07-12 14:08:29', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '234234xxx', 1, 'xxxxxx', 0, 1, '2023-07-12 14:08:07', 1, '2023-07-12 14:08:29', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (48, '234324xxxx', 2, '123123123', 1, 1, '2023-07-12 20:09:13', 1, '2023-07-13 10:09:25', '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (49, '23432cxxxx', 1, 'xcvxcvcvxcv', 0, 1, '2023-07-13 09:52:23', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (50, '2323', 1, 'xxxxx', 1, 1, '2023-07-13 09:54:44', 1, '2023-07-13 10:02:09', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (51, 'scsfdsfsd', 2, 'xxsdfdsfsdf', 1, 1, '2023-07-13 10:05:51', 1, '2023-07-13 10:06:02', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (52, 'dsadsd', 2, 'asdasdasdxxxx', 0, 1, '2023-07-13 10:05:57', 1, '2023-07-13 10:06:02', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (53, 'sdfsdf', 1, 'sdfdsfsdfsd', 0, 1, '2023-07-13 10:06:08', 1, '2023-07-13 10:06:10', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (54, '312321', 1, '123123', 0, 1, '2023-07-14 15:24:19', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (55, '123', 1, '12312312', 0, 1, '2023-07-14 15:59:42', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (56, '1234xxcsds', 2, 'dfsdfsdfdsf', 1, 1, '2023-07-14 18:21:59', null, null, '', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (57, 'sdfdsfds', 2, 'sdfsdfsdfsdf', 1, 1, '2023-07-14 18:22:05', 1, '2023-07-14 18:22:28', '', 1);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (58, 'asdasdsad', 1, 'asdasddas', 0, 1, '2023-07-14 18:22:11', 1, '2023-07-14 18:22:28', '', 1);
create table sys_operation_log
(
operation_id bigint auto_increment comment '日志主键'
primary key,
business_type smallint default 0 not null comment '业务类型0其它 1新增 2修改 3删除',
request_method smallint default 0 not null comment '请求方式',
request_module varchar(64) default '' not null comment '请求模块',
request_url varchar(256) default '' not null comment '请求URL',
called_method varchar(128) default '' not null comment '调用方法',
operator_type smallint default 0 not null comment '操作类别0其它 1后台用户 2手机端用户',
user_id bigint default 0 null comment '用户ID',
username varchar(32) default '' null comment '操作人员',
operator_ip varchar(128) default '' null comment '操作人员ip',
operator_location varchar(256) default '' null comment '操作地点',
dept_id bigint default 0 null comment '部门ID',
dept_name varchar(64) null comment '部门名称',
operation_param varchar(2048) default '' null comment '请求参数',
operation_result varchar(2048) default '' null comment '返回参数',
status smallint default 1 not null comment '操作状态1正常 0异常',
error_stack varchar(2048) default '' null comment '错误消息',
operation_time datetime not null comment '操作时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '操作日志记录';
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (379, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"123123","noticeContent":"12313123","status":"1"},', '', 1, '', '2023-07-11 10:33:17', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (380, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 21:19:42', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (381, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 21:25:07', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (382, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"2342423","noticeContent":"23423423432","status":"0"},', '', 1, '', '2023-07-11 21:29:17', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (383, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"234324234","noticeContent":"2342342343","status":"0"},', '', 1, '', '2023-07-11 21:30:28', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (384, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"43214234","noticeContent":"23423434324","status":"0"},', '', 1, '', '2023-07-11 21:31:12', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (385, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"23423432","noticeContent":"234234234234","status":"0"},', '', 1, '', '2023-07-11 21:31:18', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (386, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"23423423","noticeContent":"234234234234234","status":"0"},', '', 1, '', '2023-07-11 21:31:26', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (387, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin1', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"12334","noticeContent":"23423432","status":"1"},', '', 1, '', '2023-07-11 21:31:40', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (388, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin1', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"234324","noticeContent":"23424234","status":"0"},', '', 1, '', '2023-07-11 21:32:05', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (389, 1, 2, '公告通知', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"123123","noticeContent":"234234234","status":"0"},', '', 1, '', '2023-07-11 21:59:29', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (390, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:00:52', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (391, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:00:59', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (392, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:05:45', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (393, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:05:50', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (394, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"12312321","noticeContent":"dd","status":"0"},', '', 1, '', '2023-07-11 22:11:44', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (395, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:11:48', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (396, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:11:55', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (397, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"23423432","noticeContent":"423423432","status":"1"},', '', 1, '', '2023-07-11 22:12:26', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (398, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:30', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (399, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:53', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (400, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 0, '找不到ID为 null 的 通知公告', '2023-07-11 22:12:55', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (401, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-11 22:21:39', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (402, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-11 22:21:44', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (403, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"14423","noticeContent":"1312312对对对对对对","status":"1"},', '', 1, '', '2023-07-12 09:02:43', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (404, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-12 09:18:38', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (405, 3, 4, '通知公告', '/system/notice/42', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=42}', '', 1, '', '2023-07-12 09:44:30', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (406, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"for test","noticeContent":"21344234324","status":"0"},', '', 1, '', '2023-07-12 09:46:08', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (407, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"2143234234","noticeContent":"234234234234234234","status":"0"},', '', 1, '', '2023-07-12 09:46:18', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (408, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"just for test","noticeContent":"123123123","status":"1"},', '', 1, '', '2023-07-12 09:46:31', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (409, 3, 4, '通知公告', '/system/notice/45', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=45}', '', 1, '', '2023-07-12 09:46:40', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (410, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"3432432","noticeContent":"1231231231","status":"1"},', '', 1, '', '2023-07-12 14:07:49', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (411, 2, 3, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-12 14:07:56', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (412, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"234234xxx","noticeContent":"xxxxxx","status":"0"},', '', 1, '', '2023-07-12 14:08:07', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (413, 3, 4, '通知公告', '/system/notice/46,47', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeIds=46,47}', '', 1, '', '2023-07-12 14:08:29', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (414, 1, 2, '通知公告', '/system/notice/', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"234324","noticeContent":"123123123","status":"0"},', '', 1, '', '2023-07-12 20:09:13', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (415, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"23432cxxxx","noticeContent":"xcvxcvcvxcv","status":"0"},', '', 1, '', '2023-07-13 09:52:23', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (416, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"2323","noticeContent":"xxxxx","status":"1"},', '', 1, '', '2023-07-13 09:54:44', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (417, 3, 4, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-13 10:02:09', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (418, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"scsfdsfsd","noticeContent":"xxsdfdsfsdf","status":"1"},', '', 1, '', '2023-07-13 10:05:51', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (419, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"dsadsd","noticeContent":"asdasdasdxxxx","status":"0"},', '', 1, '', '2023-07-13 10:05:57', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (420, 3, 4, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-13 10:06:02', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (421, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"sdfsdf","noticeContent":"sdfdsfsdfsd","status":"0"},', '', 1, '', '2023-07-13 10:06:08', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (422, 3, 4, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-13 10:06:10', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (423, 2, 3, '通知公告', '/system/notices/48', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeId=48}', '', 1, '', '2023-07-13 10:09:11', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (424, 2, 3, '通知公告', '/system/notices/48', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeId=48}', '', 1, '', '2023-07-13 10:09:17', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (425, 2, 3, '通知公告', '/system/notices/48', 'com.agileboot.admin.controller.system.SysNoticeController.edit()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{noticeId=48}', '', 1, '', '2023-07-13 10:09:25', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (426, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"312321","noticeContent":"123123","status":"0"},', '', 1, '', '2023-07-14 15:24:19', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (427, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"123","noticeContent":"12312312","status":"0"},', '', 1, '', '2023-07-14 15:59:42', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (428, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"1234xxcsds","noticeContent":"dfsdfsdfdsf","status":"1"},', '', 1, '', '2023-07-14 18:21:59', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (429, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"2","noticeTitle":"sdfdsfds","noticeContent":"sdfsdfsdfsdf","status":"1"},', '', 1, '', '2023-07-14 18:22:05', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (430, 1, 2, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.add()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{"noticeType":"1","noticeTitle":"asdasdsad","noticeContent":"asdasddas","status":"0"},', '', 1, '', '2023-07-14 18:22:11', 1);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (431, 3, 4, '通知公告', '/system/notices', 'com.agileboot.admin.controller.system.SysNoticeController.remove()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-14 18:22:28', 1);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (432, 3, 4, '操作日志', '/logs/operationLogs', 'com.agileboot.admin.controller.system.SysLogsController.removeOperationLogs()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-15 16:14:45', 1);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (433, 3, 4, '操作日志', '/logs/operationLogs', 'com.agileboot.admin.controller.system.SysLogsController.removeOperationLogs()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-15 16:15:47', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (434, 3, 4, '登录日志', '/logs/loginLogs', 'com.agileboot.admin.controller.system.SysLogsController.removeLoginInfos()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-17 08:55:40', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (435, 3, 4, '登录日志', '/logs/loginLogs', 'com.agileboot.admin.controller.system.SysLogsController.removeLoginInfos()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-17 08:56:22', 0);
INSERT INTO sys_operation_log (operation_id, business_type, request_method, request_module, request_url, called_method, operator_type, user_id, username, operator_ip, operator_location, dept_id, dept_name, operation_param, operation_result, status, error_stack, operation_time, deleted) VALUES (436, 3, 4, '登录日志', '/logs/loginLogs', 'com.agileboot.admin.controller.system.SysLogsController.removeLoginInfos()', 1, 0, 'admin', '127.0.0.1', '内网IP', 0, null, '{}', '', 1, '', '2023-07-17 08:56:30', 0);
create table sys_post
(
post_id bigint auto_increment comment '岗位ID'
primary key,
post_code varchar(64) not null comment '岗位编码',
post_name varchar(64) not null comment '岗位名称',
post_sort int not null comment '显示顺序',
status smallint not null comment '状态1正常 0停用',
remark varchar(512) null comment '备注',
creator_id bigint null,
create_time datetime null comment '创建时间',
updater_id bigint null,
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '岗位信息表';
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 'ceo', '董事长', 1, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 'se', '项目经理', 2, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 'hr', '人力资源', 3, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'user', '普通员工', 5, 0, '', null, '2022-05-21 08:30:54', null, null, 0);
create table sys_role
(
role_id bigint auto_increment comment '角色ID'
primary key,
role_name varchar(32) not null comment '角色名称',
role_key varchar(128) not null comment '角色权限字符串',
role_sort int not null comment '显示顺序',
data_scope smallint default 1 null comment '数据范围1全部数据权限 2自定数据权限 3: 本部门数据权限 4: 本部门及以下数据权限 5: 本人权限)',
dept_id_set varchar(1024) default '' null comment '角色所拥有的部门数据权限',
status smallint not null comment '角色状态1正常 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '角色信息表';
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '超级管理员', 'admin', 1, 1, '', 1, null, '2022-05-21 08:30:54', null, null, '超级管理员', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '普通角色', 'common', 3, 2, '', 1, null, '2022-05-21 08:30:54', null, null, '普通角色', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '闲置角色', 'unused', 4, 2, '', 0, null, '2022-05-21 08:30:54', null, null, '未使用的角色', 0);
create table sys_role_menu
(
role_id bigint not null comment '角色ID',
menu_id bigint not null comment '菜单ID',
primary key (role_id, menu_id)
)
comment '角色和菜单关联表';
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 1);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 2);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 3);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 4);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 5);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 6);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 7);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 8);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 9);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 10);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 11);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 12);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 13);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 14);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 15);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 16);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 17);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 18);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 19);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 20);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 21);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 22);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 23);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 24);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 25);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 26);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 27);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 28);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 29);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 30);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 31);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 32);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 33);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 34);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 35);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 36);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 37);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 38);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 39);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 40);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 41);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 42);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 43);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 44);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 45);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 46);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 47);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 48);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 49);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 50);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 51);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 52);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 53);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 54);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 55);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 56);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 57);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 58);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 59);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 60);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 61);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (3, 1);
create table sys_user
(
user_id bigint auto_increment comment '用户ID'
primary key,
post_id bigint null comment '职位id',
role_id bigint null comment '角色id',
dept_id bigint null comment '部门ID',
username varchar(64) not null comment '用户账号',
nick_name varchar(32) not null comment '用户昵称',
user_type smallint default 0 null comment '用户类型00系统用户',
email varchar(128) default '' null comment '用户邮箱',
phone_number varchar(18) default '' null comment '手机号码',
sex smallint default 0 null comment '用户性别0男 1女 2未知',
avatar varchar(512) default '' null comment '头像地址',
password varchar(128) default '' not null comment '密码',
status smallint default 0 not null comment '帐号状态1正常 2停用 3冻结',
login_ip varchar(128) default '' null comment '最后登录IP',
login_date datetime null comment '最后登录时间',
is_admin tinyint(1) default 0 not null comment '超级管理员标志1是0否',
creator_id bigint null comment '更新者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '用户信息表';
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888889', 0, '', '$2a$10$rb1wRoEIkLbIknREEN1LH.FGs4g0oOS5t6l5LQ793nRaFO.SPHDHy', 1, '127.0.0.1', '2023-07-18 21:06:59', 1, null, '2022-05-21 08:30:54', 1, '2023-07-18 21:06:59', '管理员', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);

View File

@@ -1,357 +0,0 @@
create table sys_config
(
config_id int auto_increment comment '参数主键'
primary key,
config_name varchar(128) default '' not null comment '配置名称',
config_key varchar(128) default '' not null comment '配置键名',
config_options varchar(1024) default '' not null comment '可选的选项',
config_value varchar(256) default '' not null comment '配置值',
is_allow_change tinyint(1) not null comment '是否允许修改',
creator_id bigint null comment '创建者ID',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
create_time datetime null comment '创建时间',
remark varchar(128) null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除',
constraint config_key_uniq_idx
unique (config_key)
)
comment '参数配置表';
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', '["skin-blue","skin-green","skin-purple","skin-red","skin-yellow"]', 'skin-blue', 1, null, null, '2022-08-28 22:12:19', '2022-05-21 08:30:55', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '', '1234567', 1, null, null, '2022-08-28 21:54:19', '2022-05-21 08:30:55', '初始化密码 123456', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', '["theme-dark","theme-light"]', 'theme-dark', 1, null, null, '2022-08-28 22:12:15', '2022-08-20 08:30:55', '深色主题theme-dark浅色主题theme-light', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (4, '账号自助-验证码开关', 'sys.account.captchaOnOff', '["true","false"]', 'false', 0, null, null, '2022-08-28 22:03:37', '2022-05-21 08:30:55', '是否开启验证码功能true开启false关闭', 0);
INSERT INTO sys_config (config_id, config_name, config_key, config_options, config_value, is_allow_change, creator_id, updater_id, update_time, create_time, remark, deleted) VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', '["true","false"]', 'true', 0, null, 1, '2022-10-05 22:18:57', '2022-05-21 08:30:55', '是否开启注册用户功能true开启false关闭', 0);
create table sys_dept
(
dept_id bigint auto_increment comment '部门id'
primary key,
parent_id bigint default 0 not null comment '父部门id',
ancestors text not null comment '祖级列表',
dept_name varchar(64) default '' not null comment '部门名称',
order_num int default 0 not null comment '显示顺序',
leader_id bigint null,
leader_name varchar(64) null comment '负责人',
phone varchar(16) null comment '联系电话',
email varchar(128) null comment '邮箱',
status smallint default 0 not null comment '部门状态0停用 1启用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '部门表';
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 0, '0', 'AgileBoot科技', 0, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 1, '0,1', '深圳总公司', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 1, '0,1', '长沙分公司', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 2, '0,1,2', '研发部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (5, 2, '0,1,2', '市场部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (6, 2, '0,1,2', '测试部门', 3, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (7, 2, '0,1,2', '财务部门', 4, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (8, 2, '0,1,2', '运维部门', 5, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (9, 3, '0,1,3', '市场部门', 1, null, 'valarchie', '15888888888', 'valarchie@163.com', 1, null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_dept (dept_id, parent_id, ancestors, dept_name, order_num, leader_id, leader_name, phone, email, status, creator_id, create_time, updater_id, update_time, deleted) VALUES (10, 3, '0,1,3', '财务部门', 2, null, 'valarchie', '15888888888', 'valarchie@163.com', 0, null, '2022-05-21 08:30:54', null, null, 0);
create table sys_login_info
(
info_id bigint auto_increment comment '访问ID'
primary key,
username varchar(50) default '' not null comment '用户账号',
ip_address varchar(128) default '' not null comment '登录IP地址',
login_location varchar(255) default '' not null comment '登录地点',
browser varchar(50) default '' not null comment '浏览器类型',
operation_system varchar(50) default '' not null comment '操作系统',
status smallint default 0 not null comment '登录状态1成功 0失败',
msg varchar(255) default '' not null comment '提示消息',
login_time datetime null comment '访问时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '系统访问记录';
INSERT INTO sys_login_info (info_id, username, ip_address, login_location, browser, operation_system, status, msg, login_time, deleted) VALUES (415, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Mac OS X', 1, '登录成功', '2023-06-29 22:49:37', 0);
create table sys_menu
(
menu_id bigint auto_increment comment '菜单ID'
primary key,
menu_name varchar(64) not null comment '菜单名称',
route_name varchar(255) default '' not null comment '路由名称(前端逻辑需要使用)',
parent_id bigint default 0 not null comment '父菜单ID',
path varchar(255) default '' null comment '路由地址',
component varchar(255) null comment '组件路径',
`rank` int default 0 not null comment '显示顺序',
query varchar(255) null comment '路由参数',
is_button tinyint default 0 not null comment '是否按钮',
permission varchar(128) null comment '权限标识',
meta_info varchar(1024) default '{}' not null comment '路由元信息主要由前端处理',
status smallint default 0 not null comment '菜单状态1启用 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(256) default '' null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '菜单权限表';
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '系统管理', ' ', 0, '/system', null, 1, '', 0, '', '{"title":"系统管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统管理目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '系统监控', ' ', 0, '/monitor', null, 2, '', 0, '', '{"title":"系统监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统监控目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '系统工具', ' ', 0, '/tool', null, 3, '', 0, '', '{"title":"系统工具"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统工具目录', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (4, 'AgileBoot官网', ' ', 0, 'https://juejin.cn/column/7159946528827080734', null, 4, '', 0, '', '{"title":"AgileBoot官网"}', 1, 0, '2022-05-21 08:30:54', null, null, 'Agileboot官网地址', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (5, '用户管理', ' ', 1, 'user', 'system/user/index', 1, '', 0, 'system:user:list', '{"title":"用户管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '用户管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (6, '角色管理', ' ', 1, 'role', 'system/role/index', 2, '', 0, 'system:role:list', '{"title":"角色管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '角色管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (7, '菜单管理', ' ', 1, 'menu', 'system/menu/index', 3, '', 0, 'system:menu:list', '{"title":"菜单管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '菜单管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (8, '部门管理', ' ', 1, 'dept', 'system/dept/index', 4, '', 0, 'system:dept:list', '{"title":"部门管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '部门管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (9, '岗位管理', ' ', 1, 'post', 'system/post/index', 5, '', 0, 'system:post:list', '{"title":"岗位管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '岗位管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (10, '参数设置', ' ', 1, 'config', 'system/config/index', 7, '', 0, 'system:config:list', '{"title":"参数设置"}', 1, 0, '2022-05-21 08:30:54', null, null, '参数设置菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (11, '通知公告', ' ', 1, 'notice', 'system/notice/index', 8, '', 0, 'system:notice:list', '{"title":"通知公告"}', 1, 0, '2022-05-21 08:30:54', null, null, '通知公告菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (12, '日志管理', ' ', 1, 'log', '', 9, '', 0, '', '{"title":"日志管理"}', 1, 0, '2022-05-21 08:30:54', null, null, '日志管理菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (13, '在线用户', ' ', 2, 'online', 'monitor/online/index', 1, '', 0, 'monitor:online:list', '{"title":"在线用户"}', 1, 0, '2022-05-21 08:30:54', null, null, '在线用户菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (14, '数据监控', ' ', 2, 'druid', 'monitor/druid/index', 3, '', 0, 'monitor:druid:list', '{"title":"数据监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '数据监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (15, '服务监控', ' ', 2, 'server', 'monitor/server/index', 4, '', 0, 'monitor:server:list', '{"title":"服务监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '服务监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (16, '缓存监控', ' ', 2, 'cache', 'monitor/cache/index', 5, '', 0, 'monitor:cache:list', '{"title":"缓存监控"}', 1, 0, '2022-05-21 08:30:54', null, null, '缓存监控菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (17, '系统接口', ' ', 3, 'swagger', 'tool/swagger/index', 3, '', 0, 'tool:swagger:list', '{"title":"系统接口"}', 1, 0, '2022-05-21 08:30:54', null, null, '系统接口菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (18, '操作日志', ' ', 12, 'operlog', 'monitor/operlog/index', 1, '', 0, 'monitor:operlog:list', '{"title":"操作日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '操作日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (19, '登录日志', ' ', 12, 'logininfor', 'monitor/logininfor/index', 2, '', 0, 'monitor:logininfor:list', '{"title":"登录日志"}', 1, 0, '2022-05-21 08:30:54', null, null, '登录日志菜单', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (20, '用户查询', ' ', 5, '', '', 1, '', 1, 'system:user:query', '{"title":"用户查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (21, '用户新增', ' ', 5, '', '', 2, '', 1, 'system:user:add', '{"title":"用户新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (22, '用户修改', ' ', 5, '', '', 3, '', 1, 'system:user:edit', '{"title":"用户修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (23, '用户删除', ' ', 5, '', '', 4, '', 1, 'system:user:remove', '{"title":"用户删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (24, '用户导出', ' ', 5, '', '', 5, '', 1, 'system:user:export', '{"title":"用户导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (25, '用户导入', ' ', 5, '', '', 6, '', 1, 'system:user:import', '{"title":"用户导入"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (26, '重置密码', ' ', 5, '', '', 7, '', 1, 'system:user:resetPwd', '{"title":"重置密码"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (27, '角色查询', ' ', 6, '', '', 1, '', 1, 'system:role:query', '{"title":"角色查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (28, '角色新增', ' ', 6, '', '', 2, '', 1, 'system:role:add', '{"title":"角色新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (29, '角色修改', ' ', 6, '', '', 3, '', 1, 'system:role:edit', '{"title":"角色修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (30, '角色删除', ' ', 6, '', '', 4, '', 1, 'system:role:remove', '{"title":"角色删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (31, '角色导出', ' ', 6, '', '', 5, '', 1, 'system:role:export', '{"title":"角色导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (32, '菜单查询', ' ', 7, '', '', 1, '', 1, 'system:menu:query', '{"title":"菜单查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (33, '菜单新增', ' ', 7, '', '', 2, '', 1, 'system:menu:add', '{"title":"菜单新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (34, '菜单修改', ' ', 7, '', '', 3, '', 1, 'system:menu:edit', '{"title":"菜单修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (35, '菜单删除', ' ', 7, '', '', 4, '', 1, 'system:menu:remove', '{"title":"菜单删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (36, '部门查询', ' ', 8, '', '', 1, '', 1, 'system:dept:query', '{"title":"部门查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (37, '部门新增', ' ', 8, '', '', 2, '', 1, 'system:dept:add', '{"title":"部门新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (38, '部门修改', ' ', 8, '', '', 3, '', 1, 'system:dept:edit', '{"title":"部门修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (39, '部门删除', ' ', 8, '', '', 4, '', 1, 'system:dept:remove', '{"title":"部门删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (40, '岗位查询', ' ', 9, '', '', 1, '', 1, 'system:post:query', '{"title":"岗位查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (41, '岗位新增', ' ', 9, '', '', 2, '', 1, 'system:post:add', '{"title":"岗位新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (42, '岗位修改', ' ', 9, '', '', 3, '', 1, 'system:post:edit', '{"title":"岗位修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (43, '岗位删除', ' ', 9, '', '', 4, '', 1, 'system:post:remove', '{"title":"岗位删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (44, '岗位导出', ' ', 9, '', '', 5, '', 1, 'system:post:export', '{"title":"岗位导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (45, '参数查询', ' ', 10, '#', '', 1, '', 1, 'system:config:query', '{"title":"参数查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (46, '参数新增', ' ', 10, '#', '', 2, '', 1, 'system:config:add', '{"title":"参数新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (47, '参数修改', ' ', 10, '#', '', 3, '', 1, 'system:config:edit', '{"title":"参数修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (48, '参数删除', ' ', 10, '#', '', 4, '', 1, 'system:config:remove', '{"title":"参数删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (49, '参数导出', ' ', 10, '#', '', 5, '', 1, 'system:config:export', '{"title":"参数导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (50, '公告查询', ' ', 11, '#', '', 1, '', 1, 'system:notice:query', '{"title":"公告查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (51, '公告新增', ' ', 11, '#', '', 2, '', 1, 'system:notice:add', '{"title":"公告新增"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (52, '公告修改', ' ', 11, '#', '', 3, '', 1, 'system:notice:edit', '{"title":"公告修改"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (53, '公告删除', ' ', 11, '#', '', 4, '', 1, 'system:notice:remove', '{"title":"公告删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (54, '操作查询', ' ', 18, '#', '', 1, '', 1, 'monitor:operlog:query', '{"title":"操作查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (55, '操作删除', ' ', 18, '#', '', 2, '', 1, 'monitor:operlog:remove', '{"title":"操作删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (56, '日志导出', ' ', 18, '#', '', 4, '', 1, 'monitor:operlog:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (57, '登录查询', ' ', 19, '#', '', 1, '', 1, 'monitor:logininfor:query', '{"title":"登录查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (58, '登录删除', ' ', 19, '#', '', 2, '', 1, 'monitor:logininfor:remove', '{"title":"登录删除"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (59, '日志导出', ' ', 19, '#', '', 3, '', 1, 'monitor:logininfor:export', '{"title":"日志导出"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (60, '在线查询', ' ', 13, '#', '', 1, '', 1, 'monitor:online:query', '{"title":"在线查询"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (61, '批量强退', ' ', 13, '#', '', 2, '', 1, 'monitor:online:batchLogout', '{"title":"批量强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
INSERT INTO sys_menu (menu_id, menu_name, route_name, parent_id, path, component, `rank`, query, is_button, permission, meta_info, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (62, '单条强退', ' ', 13, '#', '', 3, '', 1, 'monitor:online:forceLogout', '{"title":"单条强退"}', 1, 0, '2022-05-21 08:30:54', null, null, '', 0);
create table sys_notice
(
notice_id int auto_increment comment '公告ID'
primary key,
notice_title varchar(64) not null comment '公告标题',
notice_type smallint not null comment '公告类型1通知 2公告',
notice_content text null comment '公告内容',
status smallint default 0 not null comment '公告状态1正常 0关闭',
creator_id bigint not null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(255) default '' not null comment '备注',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '通知公告表';
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '温馨提醒2018-07-01 AgileBoot新版本发布啦', 2, '新版本内容~~~~~~~~~~', 1, 1, '2022-05-21 08:30:55', 1, '2022-08-29 20:12:37', '管理员', 0);
INSERT INTO sys_notice (notice_id, notice_title, notice_type, notice_content, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '维护通知2018-07-01 AgileBoot系统凌晨维护', 1, '维护内容', 1, 1, '2022-05-21 08:30:55', null, null, '管理员', 0);
create table sys_operation_log
(
operation_id bigint auto_increment comment '日志主键'
primary key,
business_type smallint default 0 not null comment '业务类型0其它 1新增 2修改 3删除',
request_method smallint default 0 not null comment '请求方式',
request_module varchar(64) default '' not null comment '请求模块',
request_url varchar(256) default '' not null comment '请求URL',
called_method varchar(128) default '' not null comment '调用方法',
operator_type smallint default 0 not null comment '操作类别0其它 1后台用户 2手机端用户',
user_id bigint default 0 null comment '用户ID',
username varchar(32) default '' null comment '操作人员',
operator_ip varchar(128) default '' null comment '操作人员ip',
operator_location varchar(256) default '' null comment '操作地点',
dept_id bigint default 0 null comment '部门ID',
dept_name varchar(64) null comment '部门名称',
operation_param varchar(2048) default '' null comment '请求参数',
operation_result varchar(2048) default '' null comment '返回参数',
status smallint default 1 not null comment '操作状态1正常 0异常',
error_stack varchar(2048) default '' null comment '错误消息',
operation_time datetime not null comment '操作时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '操作日志记录';
create table sys_post
(
post_id bigint auto_increment comment '岗位ID'
primary key,
post_code varchar(64) not null comment '岗位编码',
post_name varchar(64) not null comment '岗位名称',
post_sort int not null comment '显示顺序',
status smallint not null comment '状态1正常 0停用',
remark varchar(512) null comment '备注',
creator_id bigint null,
create_time datetime null comment '创建时间',
updater_id bigint null,
update_time datetime null comment '更新时间',
deleted tinyint(1) default 0 not null comment '逻辑删除'
)
comment '岗位信息表';
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (1, 'ceo', '董事长', 1, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (2, 'se', '项目经理', 2, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (3, 'hr', '人力资源', 3, 1, '', null, '2022-05-21 08:30:54', null, null, 0);
INSERT INTO sys_post (post_id, post_code, post_name, post_sort, status, remark, creator_id, create_time, updater_id, update_time, deleted) VALUES (4, 'user', '普通员工', 5, 0, '', null, '2022-05-21 08:30:54', null, null, 0);
create table sys_role
(
role_id bigint auto_increment comment '角色ID'
primary key,
role_name varchar(32) not null comment '角色名称',
role_key varchar(128) not null comment '角色权限字符串',
role_sort int not null comment '显示顺序',
data_scope smallint default 1 null comment '数据范围1全部数据权限 2自定数据权限 3: 本部门数据权限 4: 本部门及以下数据权限 5: 本人权限)',
dept_id_set varchar(1024) default '' null comment '角色所拥有的部门数据权限',
status smallint not null comment '角色状态1正常 0停用',
creator_id bigint null comment '创建者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '角色信息表';
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, '超级管理员', 'admin', 1, 1, '', 1, null, '2022-05-21 08:30:54', null, null, '超级管理员', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, '普通角色', 'common', 3, 2, '', 1, null, '2022-05-21 08:30:54', null, null, '普通角色', 0);
INSERT INTO sys_role (role_id, role_name, role_key, role_sort, data_scope, dept_id_set, status, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, '闲置角色', 'unused', 4, 2, '', 0, null, '2022-05-21 08:30:54', null, null, '未使用的角色', 0);
create table sys_role_menu
(
role_id bigint not null comment '角色ID',
menu_id bigint not null comment '菜单ID',
primary key (role_id, menu_id)
)
comment '角色和菜单关联表';
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 1);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 2);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 3);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 4);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 5);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 6);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 7);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 8);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 9);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 10);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 11);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 12);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 13);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 14);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 15);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 16);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 17);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 18);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 19);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 20);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 21);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 22);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 23);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 24);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 25);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 26);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 27);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 28);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 29);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 30);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 31);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 32);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 33);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 34);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 35);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 36);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 37);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 38);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 39);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 40);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 41);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 42);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 43);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 44);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 45);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 46);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 47);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 48);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 49);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 50);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 51);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 52);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 53);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 54);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 55);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 56);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 57);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 58);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 59);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 60);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (2, 61);
INSERT INTO sys_role_menu (role_id, menu_id) VALUES (3, 1);
create table sys_user
(
user_id bigint auto_increment comment '用户ID'
primary key,
post_id bigint null comment '职位id',
role_id bigint null comment '角色id',
dept_id bigint null comment '部门ID',
username varchar(64) not null comment '用户账号',
nick_name varchar(32) not null comment '用户昵称',
user_type smallint default 0 null comment '用户类型00系统用户',
email varchar(128) default '' null comment '用户邮箱',
phone_number varchar(18) default '' null comment '手机号码',
sex smallint default 0 null comment '用户性别0男 1女 2未知',
avatar varchar(512) default '' null comment '头像地址',
password varchar(128) default '' not null comment '密码',
status smallint default 0 not null comment '帐号状态1正常 2停用 3冻结',
login_ip varchar(128) default '' null comment '最后登录IP',
login_date datetime null comment '最后登录时间',
is_admin tinyint(1) default 0 not null comment '超级管理员标志1是0否',
creator_id bigint null comment '更新者ID',
create_time datetime null comment '创建时间',
updater_id bigint null comment '更新者ID',
update_time datetime null comment '更新时间',
remark varchar(512) null comment '备注',
deleted tinyint(1) default 0 not null comment '删除标志0代表存在 1代表删除'
)
comment '用户信息表';
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (1, 1, 1, 4, 'admin', 'valarchie1', 0, 'agileboot@163.com', '15888888889', 0, '', '$2a$10$rb1wRoEIkLbIknREEN1LH.FGs4g0oOS5t6l5LQ793nRaFO.SPHDHy', 1, '127.0.0.1', '2023-06-29 22:49:37', 1, null, '2022-05-21 08:30:54', 1, '2023-06-29 22:49:37', '管理员', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (2, 2, 2, 5, 'ag1', 'valarchie2', 0, 'agileboot1@qq.com', '15666666666', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员1', 0);
INSERT INTO sys_user (user_id, post_id, role_id, dept_id, username, nick_name, user_type, email, phone_number, sex, avatar, password, status, login_ip, login_date, is_admin, creator_id, create_time, updater_id, update_time, remark, deleted) VALUES (3, 2, 0, 5, 'ag2', 'valarchie3', 0, 'agileboot2@qq.com', '15666666667', 1, '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 1, '127.0.0.1', '2022-05-21 08:30:54', 0, null, '2022-05-21 08:30:54', null, null, '测试员2', 0);