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 = "account_daily_summary")
public class AccountDailySummaryTable extends BaseTable {
    /**
     * 交易账号
     */
    private Long login;
    /**
     * CID
     */
    private Long cId;
    /**
     * 代理编号
     */
    private Long agentId;
    /**
     * 销售编号
     */
    private Long salesId;
    /**
     * 入金
     */
    private Float deposit;
    /**
     * 出金
     */
    private Float withdrawal;
    /**
     * 合计信用
     */
    private Float sumCredit;
    /**
     * 净入金
     */
    private Float netDeposit;
    /**
     * 手数
     */
    private Float volume;
    /**
     * 内返
     */
    private Float rebate;
    /**
     * 手续费返佣
     */
    private Float commission;
    /**
     * 加点返佣
     */
    private Float hidden;
    /**
     * 合计返佣
     */
    private Float sumRebate;
    /**
     * 库存费
     */
    private Float storage;
    /**
     * 盈亏
     */
    private Float profit;
    /**
     * 交易平台
     */
    private String platform;
    /**
     * 统计时间
     */
    private Date summaryDate;

    public static AccountDailySummaryTable getInstance() {
        AccountDailySummaryTable table = new AccountDailySummaryTable();
        table.deposit = 0f;
        table.withdrawal = 0f;
        table.netDeposit = 0f;
        table.sumCredit = 0f;
        table.volume = 0f;
        table.rebate = 0f;
        table.commission = 0f;
        table.hidden = 0f;
        table.sumRebate = 0f;
        table.storage = 0f;
        table.profit = 0f;
        return table;
    }

}
