yeg
2026-09-07 551bf2b42dddc3a0d8d0949da17bb2b1ec733b01
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -74,7 +74,7 @@
          #{operId}
        </foreach> 
        <!-- 报表删除只保留这一份最小追溯记录,平台日志清理也不能移除。 -->
        and (method is null or method &lt;&gt; 'compare-report.delete')
        and (method is null or method not in ('compare-report.delete', 'formation-report.delete'))
    </delete>
    
    <select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
@@ -83,7 +83,7 @@
   </select>
   
   <update id="cleanOperLog">
        delete from sys_oper_log where method is null or method &lt;&gt; 'compare-report.delete'
        delete from sys_oper_log where method is null or method not in ('compare-report.delete', 'formation-report.delete')
    </update>
</mapper>