From 7ffd5135ccc7059ba968649c6dce5fb5be10c740 Mon Sep 17 00:00:00 2001 From: chenhao Date: Thu, 2 Apr 2026 16:10:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0SysBotCredentialMappe?= =?UTF-8?q?r=E4=BB=A5=E6=94=AF=E6=8C=81Bot=E5=87=AD=E8=AF=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 `SysBotCredentialMapper.xml` 文件,定义Bot凭证的CRUD操作 - 包含查询、插入、更新和访问信息更新的方法 --- .../mapper/system/SysBotCredentialMapper.xml | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 ruoyi-system/src/main/resources/mapper/system/SysBotCredentialMapper.xml diff --git a/ruoyi-system/src/main/resources/mapper/system/SysBotCredentialMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysBotCredentialMapper.xml new file mode 100644 index 00000000..12d77359 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysBotCredentialMapper.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into sys_bot_credential ( + bot_id, + secret_hash, + secret_salt, + user_id, + status, + expire_time, + last_access_time, + last_access_ip, + remark, + create_by, + create_time, + update_by, + update_time + ) values ( + #{botId}, + #{secretHash}, + #{secretSalt}, + #{userId}, + #{status}, + #{expireTime}, + #{lastAccessTime}, + #{lastAccessIp}, + #{remark}, + #{createBy}, + sysdate(), + #{updateBy}, + sysdate() + ) + + + + update sys_bot_credential + set bot_id = #{botId}, + secret_hash = #{secretHash}, + secret_salt = #{secretSalt}, + user_id = #{userId}, + status = #{status}, + expire_time = #{expireTime}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + where id = #{id} + + + + update sys_bot_credential + set last_access_time = #{lastAccessTime}, + last_access_ip = #{lastAccessIp}, + update_time = sysdate() + where id = #{id} + +