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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.thinkunion.park.service.common.enums.parking.EnergyTypeEnum;
import com.thinkunion.park.service.common.enums.parking.VehicleTypeEnum;
import com.yuchen.saas.parking.api.util.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.nest.springwrap.core.tool.utils.Func;
import org.nest.springwrap.core.tool.utils.StringPool;

import java.util.Date;
import java.util.List;

/**
 * @Description 月卡导出Excel
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER,
        verticalAlignment = VerticalAlignment.CENTER,
        wrapped = true)
@ColumnWidth(12)
@ContentRowHeight(30)
@HeadFontStyle(fontHeightInPoints =9)
@ExcelIgnoreUnannotated
public class CarPlanExcelVO {

    @ExcelProperty("序号")
    @ApiModelProperty("序号")
    private Integer order;

    @ExcelProperty("车牌号")
    @ApiModelProperty("车牌")
    private String plateNo;
/*

    @ApiModelProperty("能源类型（0：其他类型、1：汽油车、2：新能源）")
    private Integer energyType;
*/

    @ExcelProperty("能源类型")
    @ApiModelProperty("能源类型（0：其他类型、1：汽油车、2：新能源）")
    private String energyTypeName;

    @ApiModelProperty("车辆类型（0：其他车、1：小型车、2：大型车、3：摩托车）")
    private Integer vehicleType;

    @ExcelProperty("车牌类型")
    @ApiModelProperty("车辆类型（0：其他车、1：小型车、2：大型车、3：摩托车）")
    private String vehicleTypeName;

    @ExcelProperty("停车类型")
    @ApiModelProperty("停车类型")
    private String ruleName;

/*    @ExcelProperty("使用有效期")
    @ApiModelProperty("使用有效期")
    private String validityPeriod;*/

    @ApiModelProperty(name = "beginTime", value = "包租 开始时间")
    private Date beginTime;

    @ApiModelProperty(name = "endTime", value = "包租 结束时间")
    private Date endTime;

    @ExcelProperty("停车场")
    @ApiModelProperty("停车场")
    private String parkingName;

    @ExcelProperty("车位号")
    @ApiModelProperty(name = "spaceNo", value = "车位号")
    private String spaceNo;

    @ExcelProperty("单位")
    @ApiModelProperty("单位")
    private String companyName;

    @ExcelProperty("车主名称")
    @ApiModelProperty("车主名称")
    private String personName;

    @ExcelProperty("绑定手机号")
    @ApiModelProperty("绑定手机号")
    private String personPhone;

    @ApiModelProperty("备注")
    private String remark;

}
