package cn.pluss.platform.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author djh
 */
@Data
public class SpreadData {

    private static final String TYPE_DAY = "1";

    private static final String TYPE_MONTH = "2";

    private static final String TYPE_YEAR = "3";

    /**
     * 用户id
     */
    private String userId;

    /**
     * 直属商户交易额
     */
    private BigDecimal ownAmt;

    /**
     * 直属与昨日占比
     */
    private BigDecimal ownAmtPreCompare;

    /**
     * 直属商户交易笔数
     */
    private Long ownBillCount;

    /**
     * 直属与昨日占比
     */
    private BigDecimal ownBillCountPreCompare;

    /**
     * 直属新增商户数
     */
    private Long ownNewCount;

    private BigDecimal ownNewCountPreCompare;

    /**
     * 直属活跃商户数
     */
    private Long ownActiveCount;

    private BigDecimal ownActiveCountPreCompare;

    /**
     * 团队商户交易额
     */
    private BigDecimal teamAmt;

    private BigDecimal teamAmtPreCompare;

    /**
     * 团队商户交易笔数
     */
    private Long teamBillCount;

    private BigDecimal teamBillCountPreCompare;

    /**
     * 团队新增商户
     */
    private Long teamNewCount;

    private BigDecimal teamNewCountPreCompare;

    /**
     * 团队活跃商户数
     */
    private Long teamActiveCount;

    private BigDecimal teamActiveCountPreCompare;

    /**
     * 日期
     */
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate startDate;

    /**
     * 日期
     */
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate endDate;

    @JSONField(format = "yyyy-MM-dd")
    private LocalDate date;

    /**
     * 月份  yyyy-MM
     */
    private String month;

    /**
     * 年    yyyy
     */
    private String year;

    /**
     * 类型
     */
    private String type;
}