summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortanghao <[email protected]>2023-10-31 18:20:58 +0800
committertanghao <[email protected]>2023-10-31 18:20:58 +0800
commit0856d9c21602a9d93204f1e7e636785f7b161863 (patch)
tree269692023114d2346720c0471237227c5fbb5723
parent22e0bdbd5d9abfbbc4768b5feaedc72d88f8653f (diff)
fix: CN-1444 Psiphon3 VPN的自动学习引擎日志出现在了更新记录页里
-rw-r--r--cn-admin/src/main/resources/db/R__AZ_sys_api_key.sql1
-rw-r--r--cn-admin/src/main/resources/mapper/knowledge/KnowledgeBaseAuditLogDao.xml3
2 files changed, 4 insertions, 0 deletions
diff --git a/cn-admin/src/main/resources/db/R__AZ_sys_api_key.sql b/cn-admin/src/main/resources/db/R__AZ_sys_api_key.sql
index 9eac21a..1a61fb7 100644
--- a/cn-admin/src/main/resources/db/R__AZ_sys_api_key.sql
+++ b/cn-admin/src/main/resources/db/R__AZ_sys_api_key.sql
@@ -22,5 +22,6 @@ CREATE TABLE `sys_api_key` (
-- Records of sys_api_key
-- ----------------------------
INSERT INTO `sys_api_key` VALUES (1, 'ETL', '1a653ea0-d39b-4246-94b0-1ba95db4b6a7', 1, 1, '2023-10-16 10:01:21', NULL);
+INSERT INTO `sys_api_key` VALUES (2, 'Learning Engine', 'a2857bc21b01421b85953fc2c65b4d4c', 1, 1, '2023-10-30 18:10:15', NULL);
SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file
diff --git a/cn-admin/src/main/resources/mapper/knowledge/KnowledgeBaseAuditLogDao.xml b/cn-admin/src/main/resources/mapper/knowledge/KnowledgeBaseAuditLogDao.xml
index 8e07c5c..1f7bd99 100644
--- a/cn-admin/src/main/resources/mapper/knowledge/KnowledgeBaseAuditLogDao.xml
+++ b/cn-admin/src/main/resources/mapper/knowledge/KnowledgeBaseAuditLogDao.xml
@@ -36,6 +36,9 @@
and op_user = #{params.opUser}
</when>
</choose>
+ <if test="params.apiKeyId != null ">
+ and api_key_id = #{params.apiKeyId}
+ </if>
<if test="params.orderBy == null or params.orderBy == ''">
ORDER BY kbal.op_time DESC
</if>