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