package com.ylx.giftCard.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ylx.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物卡订单导出VO
 */
@Data
@ApiModel("购物卡订单导出VO")
public class GiftCardOrderExportVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID，导出展示购物卡订单编号
     */
    @Excel(name = "订单ID", sort = 1)
    private String orderId;

    /**
     * 购物卡名称
     */
    @Excel(name = "购物卡名称", sort = 2)
    private String giftCardName;

    /**
     * 订单金额
     */
    @Excel(name = "金额", sort = 3)
    private BigDecimal payAmount;

    /**
     * 下单用户姓名
     */
    @Excel(name = "用户姓名", sort = 4)
    private String userName;

    /**
     * 下单用户电话
     */
    @Excel(name = "用户电话", sort = 5)
    private String userPhone;

    /**
     * 下单时间
     */
    @Excel(name = "下单时间", sort = 6, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;

    /**
     * 商户提成金额
     */
    @Excel(name = "商户提成金额", sort = 7)
    private BigDecimal commissionAmount;

    /**
     * 商户账户，取ma_technician.te_phone
     */
    @Excel(name = "商户账户", sort = 8)
    private String merchantAccount;

    /**
     * 商户姓名
     */
    @Excel(name = "商户姓名", sort = 9)
    private String merchantName;

    /**
     * 商户昵称
     */
    @Excel(name = "商户昵称", sort = 10)
    private String merchantNickName;
}
