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("WRTRADE_GOODSCONFIG")
@ApiModel(value="WrtradeGoodsconfig对象", description="仓单贸易商品配置表[浮动价]")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WrtradeGoodsconfig extends Model<WrtradeGoodsconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "仓单贸易委托单ID(挂牌委托)")
    private Long wrtradeorderid;

    @ApiModelProperty(value = "商品ID")
    @TableField("GOODSID")
    private Long goodsid;

    @ApiModelProperty(value = "商品代码")
    @TableField("GOODSCODE")
    private String goodscode;

    @ApiModelProperty(value = "商品价格系数")
    @TableField("PRICEFACTOR")
    private BigDecimal pricefactor;

    @ApiModelProperty(value = "商品升贴水值")
    @TableField("PRICEMOVE")
    private BigDecimal pricemove;

    @ApiModelProperty(value = "重量系数")
    @TableField("WEIGHTRATIO")
    private BigDecimal weightratio;


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

}
