package com.goafanti.order.bo;

import com.goafanti.common.utils.excel.Excel;

import java.math.BigDecimal;

public class OutSignStatistics {

    private String id;
    @Excel(name = "营销员")
    private String name;
    @Excel(name = "签单客户",width = 8,defaultValue="0")
    private Integer userCount;
    @Excel(name = "签单个数",width = 8,defaultValue="0")
    private Integer orderCount;
    @Excel(name = "签单总金额",defaultValue="0",scale = 6)
    private BigDecimal totalAmount;
    @Excel(name = "新签数",width = 8,defaultValue="0")
    private Integer newSignNumber;
    @Excel(name = "新签率",width = 8,percentage=1 ,defaultValue="0")
    private BigDecimal newRatio;
    @Excel(name = "复购数",width = 8,defaultValue="0")
    private Integer repeatSignNumber;
    @Excel(name = "复购率",width = 8,percentage=1 ,defaultValue="0")
    private BigDecimal repeatRatio;
    @Excel(name = "渠道签单数",width = 8,defaultValue="0")
    private Integer channelSignNumber;
    @Excel(name = "渠道签单率",width = 8,percentage=1 ,defaultValue="0")
    private BigDecimal channelRatio;

    public Integer getUserCount() {
        if (userCount == null) return 0;
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public Integer getOrderCount() {
        if (orderCount == null) return 0;
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public BigDecimal getNewRatio() {
        return newRatio;
    }

    public void setNewRatio(BigDecimal newRatio) {
        this.newRatio = newRatio;
    }

    public BigDecimal getRepeatRatio() {
        return repeatRatio;
    }

    public void setRepeatRatio(BigDecimal repeatRatio) {
        this.repeatRatio = repeatRatio;
    }

    public BigDecimal getChannelRatio() {
        return channelRatio;
    }

    public void setChannelRatio(BigDecimal channelRatio) {
        this.channelRatio = channelRatio;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getTotalAmount() {
        if (totalAmount == null) return new BigDecimal(0);
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getNewSignNumber() {
        if (newSignNumber == null) return 0;
        return newSignNumber;
    }

    public void setNewSignNumber(Integer newSignNumber) {
        this.newSignNumber = newSignNumber;
    }

    public Integer getRepeatSignNumber() {
        if (repeatSignNumber == null) return 0;
        return repeatSignNumber;
    }

    public void setRepeatSignNumber(Integer repeatSignNumber) {
        this.repeatSignNumber = repeatSignNumber;
    }

    public Integer getChannelSignNumber() {
        if (channelSignNumber == null) return 0;
        return channelSignNumber;
    }

    public void setChannelSignNumber(Integer channelSignNumber) {
        this.channelSignNumber = channelSignNumber;
    }
}
