cn.meteor.common.database.mp.BizEntity Maven / Gradle / Ivy
package cn.meteor.common.database.mp;// Copyright (C), Created on 2021-04-02
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* 业务基类
*
* @author ths
* @since 1.0.0
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class BizEntity extends SysEntity {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 删除标志:0 正常,1 删除 */
@TableLogic(value = "0", delval = "1")
@TableField(select = false, fill = FieldFill.INSERT)
private Integer deleted;
}