mybatisplus 逻辑删除
时间: 2023-09-07 15:11:13 浏览: 123
MyBatisPlus提供了逻辑删除方案,逻辑删除不是真正的删除,它只是更新了逻辑删除标识。在使用MyBatisPlus的逻辑删除功能时,我们需要在实体类的字段上加上注解,告诉MyBatisPlus这是逻辑删除标识。这样在进行CRUD操作时,MyBatisPlus会自动给我们加上限制条件,只能删除逻辑存在的数据。如果我们想要自定义SQL语句来进行CRUD操作,就必须自己加上逻辑删除的限制条件。使用MyBatisPlus的逻辑删除方案可以提高开发效率。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MyBatisPlus之逻辑删除](https://blog.csdn.net/qq_43695957/article/details/123504418)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [MyBatis-Plus 之逻辑删除](https://blog.csdn.net/qq_37960603/article/details/109111941)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文