• **private **Boolean **isDeleted**; 成员变量上添加 @TableLogic 注解。

      | package com.wzy.serviceedu.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import java.util.Date;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.io.Serializable;

    import com.baomidou.mybatisplus.annotation.TableLogic;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
    import lombok.Data;
    import lombok.EqualsAndHashCode;

    /


    讲师



    *
    @author wzy
    *
    @since 2021-09-10
    */
    @Data
    @EqualsAndHashCode(callSuper =
    false)
    @ApiModel(value=
    “EduTeacher对象”, description=“讲师”)
    public class EduTeacher implements **Serializable {

    1. **private static final long serialVersionUID **= 1L;
    2. @ApiModelProperty(value = **"讲师ID"**)<br /> @TableId(value = **"id"**, type = IdType.**ID_WORKER_STR**)<br /> **private **String **id**;
    3. @ApiModelProperty(value = **"讲师姓名"**)<br /> **private **String **name**;
    4. @ApiModelProperty(value = **"讲师简介"**)<br /> **private **String **intro**;
    5. @ApiModelProperty(value = **"讲师资历,一句话说明讲师"**)<br /> **private **String **career**;
    6. @ApiModelProperty(value = **"头衔 1高级讲师 2首席讲师"**)<br /> **private **Integer **level**;
    7. @ApiModelProperty(value = **"讲师头像"**)<br /> **private **String **avatar**;
    8. @ApiModelProperty(value = **"排序"**)<br /> **private **Integer **sort**;
    9. @ApiModelProperty(value = **"逻辑删除 1(true)已删除, 0(false)未删除"**)<br /> @TableLogic<br /> **private **Boolean **isDeleted**;
    10. @ApiModelProperty(value = **"创建时间"**)<br /> **private **Date **gmtCreate**;
    11. @ApiModelProperty(value = **"更新时间"**)<br /> **private **Date **gmtModified**;

    }

    | | —- |