实体类字段上加上@TableLogic注解 @TableLogic private Integer deleted; 详细参考地址https://mybatis.plus/guide/logic-delete.html