当前使用版本(必填,否则不予处理)

3.5.2

该问题是如何引起的?(确定最新版也有问题再提!!!)

启用 BlockAttackInnerInterceptor 导致 com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation

重现步骤(如果有就写完整)

update notequals 带有表字段导致:例如 UPDATE t_user SET is_delete = 0 WHERE number != 1 触发

报错信息

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error updating database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation

代码片段

MPuysDMrqZ

Comment From: qmdx

这个插件只是提供了一种通用任务需要阻止拦截的情况,如果你的SQL认为合理,可以忽略该方法 , 使用注解 https://baomidou.com/pages/223848/#interceptorignore