From d865dd370a6c1851421c8fc0214c4b5a0b60d271 Mon Sep 17 00:00:00 2001 From: zhouyl <583641232@qq.com> Date: Mon, 9 Sep 2024 11:23:31 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B5=8B=E8=AF=95=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/inscloudtech/system/mapper/SysRequestLogMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tp-system/src/main/java/com/inscloudtech/system/mapper/SysRequestLogMapper.java b/tp-system/src/main/java/com/inscloudtech/system/mapper/SysRequestLogMapper.java index 35e32e0..5eca8ea 100644 --- a/tp-system/src/main/java/com/inscloudtech/system/mapper/SysRequestLogMapper.java +++ b/tp-system/src/main/java/com/inscloudtech/system/mapper/SysRequestLogMapper.java @@ -16,7 +16,7 @@ import java.util.List; */ public interface SysRequestLogMapper extends BaseMapperPlus { - @Select("select oper_url operUrl,count(*) count from sys_request_log WHERE oper_time BETWEEN NOW() - INTERVAL > #{alterTime} MINUTE AND NOW()" + + @Select("select oper_url operUrl,count(*) count from sys_request_log WHERE oper_time >=DATE_SUB(NOW(),INTERVAL #{alterTime} MINUTE) " + " GROUP BY oper_url HAVING count > #{requestCount}") List getAlertURl(@Param("alterTime") int alterTime, @Param("requestCount") int requestCount); }