package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 仓单要素类型选择项表
 * </p>
 *
 * @author XKF
 * @since 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WRFACTORTYPEITEM")
@ApiModel(value="Wrfactortypeitem对象", description="仓单要素类型选择项表")
public class Wrfactortypeitem extends Model<Wrfactortypeitem> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "仓单要素类型ID(212+Unix秒时间戳(10位)+xxxxxx)")
    private String wrfactortypeid;

    @ApiModelProperty(value = "要素选择项类型ID")
    @TableField("DGFACTORYITEMTYPEID")
    private Long dgfactoryitemtypeid;

    @ApiModelProperty(value = "选择项ID")
    @TableField("DGFACTORYITEMID")
    private Long dgfactoryitemid;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATORID")
    private Long updatorid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @TableField(select = false)
    private String dgfactoryitemtypename;

    @TableField(select = false)
    private String dgfactoryitemname;

    @Override
    public Serializable pkVal() {
        return this.wrfactortypeid;
    }

}
