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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author XKF
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("HIS_TRADE_EXERCISEDETAIL")
@ApiModel(value="HisTradeExercisedetail对象", description="")
public class HisTradeExercisedetail extends Model<HisTradeExercisedetail> {

    private static final long serialVersionUID = 1L;

    @TableField("TRADEID")
    private Long tradeid;

    @TableField("TRADEDATE")
    private String tradedate;

    @TableField("MARKETID")
    private Long marketid;

    @TableField("GOODSID")
    private Long goodsid;

    @TableField("BUYERACCOUNTID")
    private Long buyeraccountid;

    @TableField("SELLERACCOUNTID")
    private Long selleraccountid;

    @TableField("MIDDLEUSERID")
    private Long middleuserid;

    @TableField("MIDDLEACCOUNTID")
    private Long middleaccountid;

    @TableField("OPENPRICE")
    private BigDecimal openprice;

    @TableField("HOLDERQTY")
    private Long holderqty;

    @TableField("PREMIUM")
    private BigDecimal premium;

    @TableField("MARKETPRICE")
    private BigDecimal marketprice;

    @TableField("OPTIONTYPE")
    private Integer optiontype;

    @TableField("BUYEROUT")
    private BigDecimal buyerout;

    @TableField("BUYERIN")
    private BigDecimal buyerin;

    @TableField("SELLEROUT")
    private BigDecimal sellerout;

    @TableField("SELLERIN")
    private BigDecimal sellerin;

    @TableField("MIDDLEIN")
    private BigDecimal middlein;

    @TableField("PERFORMANCETEMPLATEID")
    private Long performancetemplateid;

    @TableField("HANDLESTATUS")
    private Integer handlestatus;

    @TableField("PERFORMANCESTATUS")
    private Integer performancestatus;

    @TableField("BUYERHANDLESTATUS")
    private Integer buyerhandlestatus;

    @TableField("SELLERHANDLESTATUS")
    private Integer sellerhandlestatus;

    @TableField("MIDDLEHANDLESTATUS")
    private Integer middlehandlestatus;

    @TableId(value = "HISTRADEDATE", type = IdType.AUTO)
    private String histradedate;

    @TableField("ISVALIDDATA")
    private Integer isvaliddata;


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

}
