package com.izouma.nineth.dto.drawback;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("退税用户")
public class DrawbackDTO {
    @ExcelProperty(value = "用户ID")
    public Long userId;
    @ExcelProperty(value = "用户电话")
    public String phone;

    @ExcelProperty(value="累计售卖金额")
    public BigDecimal totalPrice  = BigDecimal.ZERO;

    @ExcelProperty(value="最小退税比例")
    public BigDecimal minScale  = BigDecimal.ZERO;

    @ExcelProperty(value="最大退税比例")
    public BigDecimal maxScale  = BigDecimal.ZERO;

    @ExcelProperty(value = "退税金额")
    public BigDecimal amount = BigDecimal.ZERO;

    @ExcelProperty(value = "订单数量")
    public Integer orderNum;

    @ExcelProperty(value = "退税数量")
    public Integer backNum;

    @ExcelProperty(value = "首次有效订单时间")
    public LocalDateTime minOrderTime;

    @ExcelProperty(value = "最后有效订单时间")
    public LocalDateTime maxOrderTime;


    public DrawbackDTO(Long userId, String phone, BigDecimal amount) {
        this.userId = userId;
        this.phone = phone;
        this.amount = amount;
    }
}
