新增一个日志清理接口,可根据需要创建job调用
This commit is contained in:
@@ -20,4 +20,10 @@
|
||||
<if test="global.dbName == 'postgresql'"></if>
|
||||
</select> -->
|
||||
|
||||
<!-- 删除某个日期之前创建的日志 -->
|
||||
<delete id="deleteLogBefore">
|
||||
DELETE FROM ${_prefix}sys_log
|
||||
WHERE create_date < #{createDate}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user