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 2025-09-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ERMS2_WRSCONVERTDETAIL")
@ApiModel(value="Erms2Wrsconvertdetail对象", description="现货商品折算配置明细表")
public class Erms2Wrsconvertdetail extends Model<Erms2Wrsconvertdetail> {

    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "套保品种ID")
    @TableField("MIDDLEGOODSID")
    private Long middlegoodsid;

    @ApiModelProperty(value = "现货折算系数")
    @TableField("CONVERTRATIO")
    private BigDecimal convertratio;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "成本占比")
    @TableField("SHARERATIO")
    private BigDecimal shareratio;

    @ApiModelProperty(value = "成本权重")
    @TableField("COSTRATIO")
    private BigDecimal costratio;


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

}
