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.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 仓单入库要素明细表
 * </p>
 *
 * @author XKF
 * @since 2024-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WROUTINFACTORYDETAIL")
@ApiModel(value="Wroutinfactorydetail对象", description="仓单入库要素明细表")
public class Wroutinfactorydetail extends Model<Wroutinfactorydetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请ID")
    private Long applyid;

    @ApiModelProperty(value = "要素项类型ID - DGFactoryItemTypeID")
    @TableField("TYPEID")
    private Long typeid;

    @ApiModelProperty(value = "预约要素项类型值 - 选择项:DGFactoryItem->DGFactoryItemID, 录入项为输入的值")
    @TableField("TYPEVALUE")
    private String typevalue;

    @ApiModelProperty(value = "注册要素项类型值 - 选择项:DGFactoryItem->DGFactoryItemID, 录入项为输入的值")
    @TableField("TYPEVALUE2")
    private String typevalue2;

    @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;

    @ApiModelProperty(value = "要素项类型模式 -1:选择项 2:录入项")
    @TableField("ITEMTYPEMODE")
    private Integer itemtypemode;

    @TableField(select = false)
    private String typevaluename;

    @TableField(select = false)
    private String typevaluename2;

    @TableField(select = false)
    @ApiModelProperty(value = "typevaluename 与 typevaluename2 是否相同 0-否，1-是")
    private Integer issame;

    @TableField(select = false)
    private String unitname;

    @TableField(select = false)
    private String typename;
    @Override
    public Serializable pkVal() {
        return this.applyid;
    }

}
