package com.artfess.base.entity;

import com.artfess.base.typehandle.StringConvert2IntHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 基础实体类
 * @author Administrator
 *
 */
public abstract class DelBaseModel<T extends DelBaseModel<?>> extends AutoFillModel<T> implements Serializable{
	private static final long serialVersionUID = 3796984803158565007L;
	
	/**
	 * 是否已删除 0：未删除 1：已删除
	 */
	@TableLogic
	@TableField(value = "IS_DELE_",typeHandler = StringConvert2IntHandler.class)
	@ApiModelProperty(name="isDelete",notes="是否已删除 0：未删除 1：已删除（新增、更新数据时不需要传入）")
	protected String isDelete = "0";
	
	/**
	 * 版本号
	 */
	@Version
	@TableField("VERSION_")
	@ApiModelProperty(name="version",notes="版本号（新增、更新数据时不需要传入）")
	protected Integer version;

	

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

}
