package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
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;
import java.util.Date;

/**
 * <p>
 * 报价商表
 * </p>
 *
 * @author XKF
 * @since 2024-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("QUOTER")
@ApiModel(value="Quoter对象", description="报价商表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@KeySequence(value = "SEQ_QUOTER")
public class Quoter extends Model<Quoter> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "报价商名称")
    @TableField("QUOTERNAME")
    private String quotername;

    @ApiModelProperty(value = "所属机构ID")
    @TableField("AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "交易属性")
    @TableField("TRADEPROPERTY")
    private Integer tradeproperty;

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

    @ApiModelProperty(value = "报价商状态 - 1:正常 2:注销")
    @TableField("QUOTERSTATUS")
    private Integer quoterstatus;

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

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

    @ApiModelProperty(value = "对手模式: 1-经纪会员自接 2:按对手关系[收益权用]")
    @TableField("MATCHMODE")
    private Integer matchmode;


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

}
