baomidou / mybatis-plus-doc

MyBatis-Plus Official Documentation

Home Page:https://baomidou.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

逻辑删除-自动注入的sql

Albert-King opened this issue · comments

在逻辑删除的文档中写道, 逻辑删除只对自动注入的 sql 起效
什么类型的sql叫做自动注入的sql?
实际测试中发现, 只有继承 basemapper 中的 select系列api会在sql中追加逻辑删除; 而自己手动写的sql不会追加逻辑删除

你没手写就有的sql