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("ERMCP_GGCONVERTCONFIG")
@ApiModel(value="ErmcpGgconvertconfig对象", description="期货品种系数表")
public class ErmcpGgconvertconfig extends Model<ErmcpGgconvertconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ConfigID(SEQ_ERMCP_GGCONVERTCONFIG)")
    @TableId(value = "CONFIGID", type = IdType.INPUT)
    private Long configid;

    @ApiModelProperty(value = "源期货品种ID(商品组)")
    @TableField("SRCGOODSGROUPID")
    private Long srcgoodsgroupid;

    @ApiModelProperty(value = "目标期货品种ID(商品组)")
    @TableField("DESTGOODSGROUPID")
    private Long destgoodsgroupid;

    @ApiModelProperty(value = "期货品种系数")
    @TableField("CONVERTRATIO")
    private BigDecimal convertratio;

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

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


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

}
