LogicDeleteByIdWithFill Deprecated
时间: 2023-10-18 22:56:27 浏览: 52
LogicDeleteByIdWithFill方法已被弃用。根据引用中的描述,mybatis-plus的默认删除实现中,DeleteById方法和Delete方法都没有实体传入,无法做出自动填充。如果想要在逻辑删除时进行自动填充,可以使用@TableField注解,并在删除字段上添加注解@TableLogic。例如,在pojo类中的逻辑删除字段上添加@TableLogic注解,然后使用@TableField注解设置该字段在查询时被忽略。具体实现可以参考引用和中的代码示例。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [Mybatis-plus自动填充碰都的问题总结](https://blog.csdn.net/rakunjo/article/details/124091414)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* *3* [MyBatis-Plus - 深入进阶](https://blog.csdn.net/Dream_Weave/article/details/106555512)[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^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)