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-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OPTION_QUOTEDETAIL")
@ApiModel(value="OptionQuotedetail对象", description="期权报价委托表 - 导历史")
public class OptionQuotedetail extends Model<OptionQuotedetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易日(yyyyMMdd)")
    @TableField("TRADEDATE")
    private String tradedate;

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

    @ApiModelProperty(value = "价格档位")
    @TableField("STEPVALUE")
    private Integer stepvalue;

    @ApiModelProperty(value = "期权类型 - 1:认购(看涨) 2:认沽(看跌) ")
    @TableField("OPTIONTYPE")
    private Integer optiontype;

    @ApiModelProperty(value = "报价商ID")
    @TableField("QUOTERID")
    private Long quoterid;

    @ApiModelProperty(value = "权利金")
    @TableField("PREMIUM")
    private BigDecimal premium;

    @ApiModelProperty(value = "行权价")
    @TableField("STRIKEPRICE")
    private BigDecimal strikeprice;

    @ApiModelProperty(value = "报价时间")
    @TableField("QUOTETIME")
    private Date quotetime;

    @ApiModelProperty(value = "报价模式 - 1:人工报价 2:自动报价")
    @TableField("QUOTEMODE")
    private Integer quotemode;

    @ApiModelProperty(value = "行情有效时间(秒)")
    @TableField("QUOTEEFFECTIVESECOND")
    private Long quoteeffectivesecond;

    @ApiModelProperty(value = "最新价")
    @TableField("LAST")
    private BigDecimal last;


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

}
