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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
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 2021/9/15 17:09
 * @Description 月卡车辆统计报表
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints =9)
@ExcelIgnoreUnannotated
public class MonthCarExcelVo {

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","车辆信息","停车场所"})
    @ApiModelProperty("停车场所")
    private String parkingName;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","车辆信息","车牌号码"})
    @ApiModelProperty("车牌号码")
    private String carPlate;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","车辆信息","车主姓名"})
    @ApiModelProperty("车主姓名")
    private String carMainName;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","车辆信息","联系电话"})
    @ApiModelProperty("联系电话")
    private String phone;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","车辆信息","企业名称"})
    @ApiModelProperty("企业名称")
    private String companyName;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","月租单价(元/月)"})
    @ApiModelProperty("月租单价(元/月)")
    private String monthlyPrice ;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","包租开始日期"})
    @ApiModelProperty("包租开始日期")
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date monthlyStartDate;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","包租月数(个)"})
    @ApiModelProperty("包租月数(个)")
    private Integer monthlyNumber;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","包租结束日期"})
    @ApiModelProperty("包租结束日期")
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date monthlyEndDate;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","缴费总额(元)"})
    @ApiModelProperty("缴费总额(元)")
    private String payTotal;

    @ColumnWidth(value = 22)
    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","月租缴费信息","支付时间"})
    @ApiModelProperty("支付时间")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    private Date payDateTime;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","银行结算费率"})
    @ApiModelProperty("银行结算费率")
    private String backSettlement;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","银行结算手续费(元)"})
    @ApiModelProperty("银行结算手续费(元)")
    private String backSettlementOperationCost;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","银行结算金额(元)"})
    @ApiModelProperty("银行结算金额(元)")
    private String backSettlementCost;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","结算费率"})
    @ApiModelProperty("结算费率")
    private String customerRate;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","结算手续费(元)"})
    @ApiModelProperty("结算手续费(元)")
    private String customerRateCost;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","总结算金额(元)"})
    @ApiModelProperty("总结算金额(元)")
    private String totalCost;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","订单号"})
    @ApiModelProperty("订单号")
    private String orderNumber;

    /**
     * 停车场ID,不进行导出分组用
     */
    @ApiModelProperty(name = "parkingId", value = "停车场ID")
    private Long parkingId;

    /*@ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","物业分成比例"})
    @ApiModelProperty("物业分成比例")
    private String propertyRate;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","物业分成(元)"})
    @ApiModelProperty("物业分成(元)")
    private String propertyCost;

    @ExcelProperty({"{startDate} ~ {endDate} 月租车收费明细","费用结算","厦门火炬集团结算金额(元)"})
    @ApiModelProperty("厦门火炬集团结算金额(元)")
    private String groupSettleCost;*/

}
