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.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-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EXTERNALEXCHANGE")
@ApiModel(value="Externalexchange对象", description="外部交易所表")
@KeySequence(value = "SEQ_EXTERNALEXCHANGE")
public class Externalexchange extends Model<Externalexchange> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "AutoID - SEQ_EXTERNALEXCHANGE")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "外部交易所代码")
    @TableField("EXEXCHANGECODE")
    private String exexchangecode;

    @ApiModelProperty(value = "外部交易所名称(简称)")
    @TableField("EXEXCHANGENAME")
    private String exexchangename;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "行情档位(1-10)")
    @TableField("QUOTEGEAR")
    private Integer quotegear;

    @ApiModelProperty(value = "是否显示买卖经纪盘 - 0:不显示 1:显示")
    @TableField("SHOWBROKERFLAG")
    private Integer showbrokerflag;

    @ApiModelProperty(value = "外部交易所全称")
    @TableField("EXCHANGEFULLNAME")
    private String exchangefullname;

    @ApiModelProperty(value = "是否支持市价 - 0:不支持 1:支持")
    @TableField("ISMARKETPRICE")
    private Integer ismarketprice;


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

}
