From bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 25 十一月 2024 13:14:11 +0800
Subject: [PATCH] #优化地图

---
 src/main/resources/mapper/ApiLogMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/ApiLogMapper.xml b/src/main/resources/mapper/ApiLogMapper.xml
index ce84aac..05e704e 100644
--- a/src/main/resources/mapper/ApiLogMapper.xml
+++ b/src/main/resources/mapper/ApiLogMapper.xml
@@ -22,4 +22,11 @@
 
     </resultMap>
 
+    <delete id="clearWeekBefore">
+        delete from man_api_log
+        where 1=1
+        and datediff(week,create_time,getdate()) >= 1
+        and result != 1
+    </delete>
+
 </mapper>

--
Gitblit v1.9.1