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.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 仓单要素类型表
 * </p>
 *
 * @author XKF
 * @since 2024-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WRFACTORTYPE")
@ApiModel(value="Wrfactortype对象", description="仓单要素类型表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Wrfactortype extends Model<Wrfactortype> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "仓单要素类型名称(要素类型名称:选择项名称合并显示，逗号分隔)  例-品牌:云铜,仓库:深圳仓库")
    @TableField("WRFACTORTYPENAME")
    private String wrfactortypename;

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

    @ApiModelProperty(value = "品牌ID(1交割品种升贴水参数表 AutoID) - 作废")
    @TableField("BRANDID")
    private Long brandid;

    @ApiModelProperty(value = "品质ID(1交割品种升贴水参数表 AutoID) - 作废")
    @TableField("QUALITYID")
    private Long qualityid;

    @ApiModelProperty(value = "规格ID(1交割品种升贴水参数表 AutoID) - 作废")
    @TableField("SPECID")
    private Long specid;

    @ApiModelProperty(value = "仓库ID")
    @TableField("WAREHOUSEID")
    private Long warehouseid;

    @ApiModelProperty(value = "月份ID(1交割品种升贴水参数表 AutoID) - 作废")
    @TableField("DELIVERYMONTHID")
    private Long deliverymonthid;

    @ApiModelProperty(value = "现货商品ID")
    @TableField("WRSTANDARDID")
    private Long wrstandardid;

    @ApiModelProperty(value = "现货商品代码")
    @TableField("WRSTANDARDCODE")
    private String wrstandardcode;

    @ApiModelProperty(value = "选择项比较串【{选择项ID}＋{冒号}+选择项值 } ，逗号分隔，头尾加逗号】-- 所有选择项拼接，用于比较")
    @TableField("OPTIONCOMPARE")
    private String optioncompare;

    @ApiModelProperty(value = "仓单要素类型名称2(选择项要素的名称合并显示，逗号分隔) - 不带仓库名称")
    @TableField("WRFACTORTYPENAME2")
    private String wrfactortypename2;


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

}
