package com.crm.rely.backend.core.pojo.table;

import com.crm.rely.backend.core.pojo.BaseTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "sales_dps_volume_commission")
public class SalesDpsVolumeCommissionTable extends BaseTable {

    private Long login;

    private Long order;

    private Integer cmd;

    private String symbol;

    private Float volume;

    private Date openTime;

    private Float openPrice;

    private Date closeTime;

    private Float closePrice;

    private Float profit;

    private Float storage;

    private Float commission;

    private String groupCode;

    private Long groupType;

    private Long symbolType;

    private Long agentId;

    private String ibNo;

    private Long salesId;

    private String salesNo;

    private Float amount;

    private String platform;

    public static SalesDpsVolumeCommissionTable getInstance(){
        SalesDpsVolumeCommissionTable table = new SalesDpsVolumeCommissionTable();
        table.setAmount(0F);
        return table;
    }

}
