package com.sptg.gateway.controller.common.excel.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author WFT
 * @date 2020/6/5
 * description:
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class ThirdCardExcelTemplate extends BaseRowModel {

    @ExcelProperty(value = "卡号(必填)",index = 0)
    private String cardNo;

    @ExcelProperty(value = "生效时间(必填)",index = 1)
    private Date beginDate;

    @ExcelProperty(value = "失效时间(必填)",index = 2)
    private Date endDate;

    @ExcelProperty(value = "原数据Id",index = 3)
    private String oldId;

    @ExcelProperty(value = "类型(必填,0:住户,1:房间,2:单元,3:小区)",index = 4)
    private Integer type;

    @ExcelProperty(value = "小区Id(选填)",index = 5)
    private Long residentialId;

    @ExcelProperty(value = "单元Id(选填)",index = 6)
    private Long unitId;

    @ExcelProperty(value = "房间Id(选填)",index = 7)
    private Long roomId;

    @ExcelProperty(value = "住户Id(选填)",index = 8)
    private String userId;

}
