From d814bde01eb91d1544b718463cd31317726bbf6b Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 27 十二月 2023 21:52:22 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/mdqdasrsVersion' into mdqdasrsVersion

---
 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