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_volume_commission")
public class SalesVolumeCommissionTable 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 Float sl;

    private Float tp;

    private String groupCode;

    private Long groupType;

    private Long symbolType;

    private Long customId;

    private Long cId;

    private Long agentId;

    private String ibNo;

    private String idStamp;

    private Long salesId;

    private String salesNo;

    private String salesIdStamp;

    private Long salesLeaderId;
    /**
     * 绩效规则ID
     */
    private Long salesCommissionRuleId;

    private Float personalVolume;

    private Float personalCommission;

    private Float teamCommission;

    private Float teamVolume;

    private String platform;

    public static SalesVolumeCommissionTable getInstance(){
        SalesVolumeCommissionTable table = new SalesVolumeCommissionTable();
        table.setPersonalVolume(0F);
        table.setPersonalCommission(0F);
        table.setTeamCommission(0F);
        table.setTeamVolume(0F);
        return table;
    }

}
