package com.yuchen.saas.parking.api.vo.coupon;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.util.Date;

/**
 * @Author 蔡文强
 * @Date 2023/5/25 15:56
 * @Description 优惠券使用明细导出
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints =9)
@ExcelIgnoreUnannotated
public class PmgBatCouponRecordUseDetailExcelVO {
    @ExcelProperty("领取时间")
    @ApiModelProperty(name = "receiveTime", value = "领取时间")
    private Date receiveTime;

    @ExcelProperty("使用时间")
    @ApiModelProperty(name = "useTime", value = "使用时间")
    private Date useTime;

    @ExcelProperty("领取对象")
    @ApiModelProperty(name = "receiver", value = "领取对象(手机号或者车牌号)")
    private String  receiver;

    @ExcelProperty("使用车牌")
    @ApiModelProperty(name = "usePeople", value = "使用对象(手机号或者车牌号)")
    private String usePeople;

    @ApiModelProperty(name = "realCouponAmount", value = "减免金额(单位分)")
    private Integer realCouponAmount;
    @ExcelProperty("减免金额(元)")
    @ApiModelProperty(name = "realCouponAmountDouble", value = "减免金额(元)")
    private Double realCouponAmountDouble;

    @ExcelProperty("使用订单")
    @ApiModelProperty(name = "billId", value = "使用订单")
    private Long billId;

    @ApiModelProperty(name = "grantPeopleId", value = "优惠券发放人员(平台级用户ID)")
    private Long grantPeopleId;
    @ExcelProperty("发放人员")
    @ApiModelProperty(name = "grantPeopleName", value = "优惠券发放人员姓名或者手机号")
    private String grantPeopleName;

    @ApiModelProperty(name = "useStatus", value = "使用状态(1:未使用 2:已使用 3:已过期)")
    private Integer useStatus;
    @ExcelProperty("使用状态")
    @ApiModelProperty(name = "useStatusName", value = "使用状态(1:未使用 2:已使用 3:已过期)")
    private String useStatusName;
}
