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;
import java.util.Date;

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

    private static final long serialVersionUID = 1L;

    @TableField("PLANID")
    private Long planid;

    @TableField("BREACHAPPLYID")
    private Long breachapplyid;

    @TableField("BREACHTYPE")
    private Integer breachtype;

    @TableField("BREACHSTATUS")
    private Integer breachstatus;

    @TableField("BUYACCOUNTID")
    private Long buyaccountid;

    @TableField("SELLACCOUNTID")
    private Long sellaccountid;

    @TableField("BUYAMOUNT")
    private BigDecimal buyamount;

    @TableField("BUYAMOUNTHANDLED")
    private BigDecimal buyamounthandled;

    @TableField("SELLAMOUNT")
    private BigDecimal sellamount;

    @TableField("SELLAMOUNTHANDLED")
    private BigDecimal sellamounthandled;

    @TableField("EXCHANGEAMOUNT")
    private BigDecimal exchangeamount;

    @TableField("EXCHANGEAMOUNTHANDLED")
    private BigDecimal exchangeamounthandled;

    @TableField("CREATETIME")
    private Date createtime;

    @TableId(value = "HISTRADEDATE")
    private String histradedate;

    @TableField("ISVALIDDATA")
    private Integer isvaliddata;


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

}
