package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
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("GOODSQUOTER")
@ApiModel(value="Goodsquoter对象", description="商品报价商关系表")
public class Goodsquoter extends Model<Goodsquoter> {

    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "行情源类型 - 1:手工报价 2:外部行情源")
    @TableField("QUOTETYPE")
    private Integer quotetype;

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

    @ApiModelProperty(value = "报价随机量下限")
    @TableField("QUOTEMINVALUE")
    private Long quoteminvalue;

    @ApiModelProperty(value = "报价随机量上限")
    @TableField("QUOTEMAXVALUE")
    private Long quotemaxvalue;

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

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

    @ApiModelProperty(value = "所有权商品报价方式 - 1:手动 2:自动")
    @TableField("QUOTEMODE")
    private Integer quotemode;

    @ApiModelProperty(value = "行情源配置ID [行情源类型 = 2:外部行情源]")
    @TableField("QUOTESRCCONFIGID")
    private Long quotesrcconfigid;

    @ApiModelProperty(value = "默认做市商ID(UserID)")
    @TableField("DEFAULTMAKERID")
    private Long defaultmakerid;

    @ApiModelProperty(value = "默认做市商资金账户ID(报价货币)")
    @TableField("DMQUOTEACCOUNTID")
    private Long dmquoteaccountid;

    @ApiModelProperty(value = "默认做市商资金账户ID(合约货币)【币币】")
    @TableField("DMGOODSACCOUNTID")
    private Long dmgoodsaccountid;

    @ApiModelProperty(value = "随机重发量")
    @TableField("REQUOTEQTY")
    private Long requoteqty;


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

}
