ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -73,6 +73,8 @@ <foreach collection="array" item="operId" open="(" separator="," close=")"> #{operId} </foreach> <!-- 报表删除只保留这一份最小追溯记录,平台日志清理也不能移除。 --> and (method is null or method <> 'compare-report.delete') </delete> <select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult"> @@ -81,7 +83,7 @@ </select> <update id="cleanOperLog"> truncate table sys_oper_log delete from sys_oper_log where method is null or method <> 'compare-report.delete' </update> </mapper> </mapper>