From dbf082ae0c99dbf50dcea53348d3b9d302fa8f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Sun, 3 Aug 2025 03:10:04 +0800 Subject: [PATCH] 1 --- .../src/main/resources/application-prod.yml | 6 +- .../mapper/jarvis/SuperAdminMapper.xml | 87 +++++++++++++++++++ 2 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 ruoyi-system/src/main/resources/mapper/jarvis/SuperAdminMapper.xml diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml index 8d3f3be..b580349 100644 --- a/ruoyi-admin/src/main/resources/application-prod.yml +++ b/ruoyi-admin/src/main/resources/application-prod.yml @@ -128,7 +128,7 @@ spring: webStatFilter: enabled: true statViewServlet: - enabled: true + enabled: false # 设置白名单,不填则允许所有访问 allow: url-pattern: /druid/* @@ -151,7 +151,7 @@ token: # 令牌自定义标识 header: Authorization # 令牌密钥 - secret: abcdefghijklmnopqrstuvwxyz + secret: van0313 # 令牌有效期(默认30分钟) expireTime: 10080 @@ -173,7 +173,7 @@ pagehelper: # Swagger配置 swagger: # 是否开启swagger - enabled: true + enabled: false # 请求前缀 pathMapping: /dev-api diff --git a/ruoyi-system/src/main/resources/mapper/jarvis/SuperAdminMapper.xml b/ruoyi-system/src/main/resources/mapper/jarvis/SuperAdminMapper.xml new file mode 100644 index 0000000..905dd0f --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/jarvis/SuperAdminMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + select id, wxid, name, union_id, app_key, secret_key, is_active, created_at, updated_at from super_admin + + + + + + + + insert into super_admin + + wxid, + name, + union_id, + app_key, + secret_key, + is_active, + created_at, + updated_at, + + + #{wxid}, + #{name}, + #{unionId}, + #{appKey}, + #{secretKey}, + #{isActive}, + now(), + now(), + + + + + update super_admin + + wxid = #{wxid}, + name = #{name}, + union_id = #{unionId}, + app_key = #{appKey}, + secret_key = #{secretKey}, + is_active = #{isActive}, + updated_at = now(), + + where id = #{id} + + + + delete from super_admin where id = #{id} + + + + delete from super_admin where id in + + #{id} + + +