新增一个日志清理接口,可根据需要创建job调用

This commit is contained in:
thinkgem
2023-10-26 11:28:31 +08:00
parent 80dcbc7bce
commit 8dbbf13520
4 changed files with 50 additions and 1 deletions

View File

@@ -20,4 +20,10 @@
<if test="global.dbName == 'postgresql'"></if>
</select> -->
<!-- 删除某个日期之前创建的日志 -->
<delete id="deleteLogBefore">
DELETE FROM ${_prefix}sys_log
WHERE create_date &lt; #{createDate}
</delete>
</mapper>