From b62a885521b166be65017f269f05c9a249536155 Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期六, 29 十一月 2025 18:21:05 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/controller/ApiLogController.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/ApiLogController.java b/src/main/java/com/zy/asrs/controller/ApiLogController.java
index 0b3fbc5..60037b4 100644
--- a/src/main/java/com/zy/asrs/controller/ApiLogController.java
+++ b/src/main/java/com/zy/asrs/controller/ApiLogController.java
@@ -73,8 +73,12 @@
                 wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
                 wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
             } else {
-                if (entry.getKey().equals("url")){
-                    wrapper.like(entry.getKey(), val).or().like("client_ip", val);
+                if (entry.getKey().equals("url")) {
+                    // 浣跨敤andNew鍒涘缓鏂扮殑鏉′欢缁�
+                    wrapper.andNew()
+                            .like("url", val)
+                            .or()
+                            .like("client_ip", val);
                 } else {
                     wrapper.like(entry.getKey(), val);
                 }

--
Gitblit v1.9.1