package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
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;

/**
 * <p>
 * 品种选择项定义表
 * </p>
 *
 * @author XKF
 * @since 2024-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DGFACTORYITEM")
@ApiModel(value="Dgfactoryitem对象", description="品种选择项定义表")
@KeySequence(value = "SEQ_DGFACTORYITEM")
public class Dgfactoryitem extends Model<Dgfactoryitem> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "选择项ID(SEQ_DGFACTORYITEM)")
    @TableId(value = "DGFACTORYITEMID", type = IdType.INPUT)
    private Long dgfactoryitemid;

    @ApiModelProperty(value = "品种ID")
    @TableField("DELIVERYGOODSID")
    private Long deliverygoodsid;

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

    @ApiModelProperty(value = "要素项值(类型为仓库时填写仓库名称)")
    @TableField("DGFACTORYITEMVALUE")
    private String dgfactoryitemvalue;

    @ApiModelProperty(value = "仓库ID(类型为仓库时填写)")
    @TableField("WAREHOUSEID")
    private Long warehouseid;

    @ApiModelProperty(value = "是否有效 - 0:无效 1:有效")
    @TableField("ISVALID")
    private Integer isvalid;

    @ApiModelProperty(value = "顺序")
    @TableField("ORDERINDEX")
    private Long orderindex;

    @TableField(select = false)
    private Integer ischecked;

    @TableField(select = false)
    private Long wrstandardid;

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

}
