src/main/resources/mapper/ApiLogMapper.xml
@@ -21,5 +21,11 @@ <result column="memo" property="memo" /> </resultMap> <delete id="clearWeekBefore"> delete from man_api_log where 1=1 and datediff(week,create_time,getdate()) >= 1 and result != 1 </delete> </mapper>