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

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

import java.util.Date;

/**
 * Created by max on 2020/8/17.
 */
@Data
public class TradeDwView extends BaseTable{

    private Long ticket;

    private Long order;

    private Long cId;

    private String ibNo;

    private String pIbNo;

    private Long login;

    private String firstName;

    private String middleName;

    private String lastName;

    private Float profit;

    private Float deposit;

    private Float withdrawal;

    private Float credit;

    private Date closeTime;

    private Integer cmd;

    private String platform;

    private String country;

    private String salesNo;

    private String comment;

    private Long agentId;

    private Long salesId;

    private Integer dwType;

    private String groupCode;

    private Long groupType;

    private String idStamp;

    private String salesIdStamp;
    /**
     * 团队长ID
     */
    private Long salesLeaderId;
    /**
     * 绩效规则ID
     */
    private Long salesCommissionRuleId;

    public static TradeDwView getInstance(){
        TradeDwView dwView = new TradeDwView();
        dwView.setDeposit(0F);
        dwView.setWithdrawal(0F);
        dwView.setCredit(0F);
        return dwView;
    }

}
