package com.yami.shop.bean.vo;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 积分导出VO
 */
@Data
public class RecordExportVO {

    @ExcelProperty(value = "所属企业", index = 0)
    @ColumnWidth(30)
    private String channelName;

    @ExcelProperty(value = "员工", index = 1)
    @ColumnWidth(20)
    private String userName;

    @ExcelProperty(value = "员工手机号", index = 2)
    @ColumnWidth(30)
    private String userPhone;

    @ExcelProperty(value = "充值积分", index = 3)
    @ColumnWidth(20)
    private BigDecimal points;

    @ExcelProperty(value = "过期日期", index = 4)
    @ColumnWidth(20)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expiryDate;

    @ExcelProperty(value = "失败原因", index = 5)
    @ColumnWidth(80)
    private String reasonForFailure;

}
