From b3221701c387ab536adf66cf315c75d3b429fe04 Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期四, 17 九月 2026 09:38:06 +0800
Subject: [PATCH] feat&bug:文档问题修改及优化
---
cloud-server-other/src/main/java/com/dsh/other/controller/AccountAuditLogController.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/AccountAuditLogController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/AccountAuditLogController.java
index 197f660..70677be 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/AccountAuditLogController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/AccountAuditLogController.java
@@ -7,7 +7,6 @@
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
-
/** 内部审计写入及受控查询接口。 */
@RestController
@RequestMapping("/internal/audit-logs")
@@ -24,11 +23,13 @@
public Page<SysAccountAuditLog> page(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "20") long size,
@RequestParam(required = false) Long userId,
+ @RequestParam(required = false) String userAccount,
@RequestParam(required = false) String operationType) {
QueryWrapper<SysAccountAuditLog> query = new QueryWrapper<SysAccountAuditLog>()
.orderByDesc("created_at")
.orderByDesc("id");
if (userId != null) query.eq("user_id", userId);
+ if (userAccount != null && !userAccount.trim().isEmpty()) query.like("user_account", userAccount.trim());
if (operationType != null && !operationType.trim().isEmpty()) query.eq("operation_type", operationType);
return auditLogService.page(new Page<SysAccountAuditLog>(current, Math.min(size, 200)), query);
}
--
Gitblit v1.7.1