package com.yuchen.saas.park.api.vo.property;

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/7/31 11:01
 * @Description 房产住户导出数据
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints = 9)
@ExcelIgnoreUnannotated
public class PropertyHouseResidentExcelVo {

    @ApiModelProperty(name = "parkId", value = "园区ID")
    private Long parkId;

    @ApiModelProperty(name = "parkName", value = "园区名称")
    @ExcelProperty(value = {"房产住户表", "园区名称"}, index = 1)
    private String parkName;

    @ApiModelProperty(name = "facePhoto", value = "人员照片")
    @ExcelProperty(value = {"房产住户表", "人员照片"}, index = 2)
    private String facePhoto;

    @ApiModelProperty(name = "residentName", value = "住户名称")
    @ExcelProperty(value = {"房产住户表", "住户名称"}, index = 3)
    private String residentName;

    @ApiModelProperty(name = "linkPhoneOne", value = "联系电话")
    @ExcelProperty(value = {"房产住户表", "联系电话"}, index = 4)
    private String linkPhoneOne;

    @ApiModelProperty(name = "sex", value = "性别(1:男 2:女)")
    private Integer sex;

    @ApiModelProperty(name = "sexName", value = "性别名称")
    @ExcelProperty(value = {"房产住户表", "性别"}, index = 5)
    private String sexName;

    @ApiModelProperty(name = "idType", value = "证件类型(1:营业执照 2:身份证)")
    private Integer idType;

    @ApiModelProperty(name = "idType", value = "证件类型(1:营业执照 2:身份证)")
    @ExcelProperty(value = {"房产住户表", "证件类型"}, index = 6)
    private String idTypeName;

    @ApiModelProperty(name = "idNo", value = "证件号码")
    @ExcelProperty(value = {"房产住户表", "证件号码"}, index = 7)
    private String idNo;

    @ApiModelProperty(name = "ownerId", value = "业主ID")
    private Long ownerId;

    @ApiModelProperty(name = "ownerName", value = "业主")
    @ExcelProperty(value = {"房产住户表", "业主"}, index = 8)
    private String ownerName;

    @ApiModelProperty(name = "relation", value = "与业主关系")
    @ExcelProperty(value = {"房产住户表", "与业主关系"}, index = 9)
    private String relation;

    @ApiModelProperty(name = "houseId", value = "房源ID")
    private Long houseId;

    @ApiModelProperty(name = "houseCode", value = "房间代码")
    @ExcelProperty(value = {"房产住户表", "房间代码"}, index = 10)
    private String houseCode;

    @ApiModelProperty(name = "startDate", value = "入住日期")
    @ExcelProperty(value = {"房产住户表", "入住日期"}, index = 11)
    private Date startDate;

    @ApiModelProperty(name = "endDate", value = "截止日期")
    @ExcelProperty(value = {"房产住户表", "截止日期"}, index = 12)
    private Date endDate;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    @ExcelProperty(value = {"房产住户表", "创建时间"}, index = 13)
    private Date createTime;

    @ApiModelProperty(name = "createType", value = "创建方式(1:后台添加 2:自动同步)")
    private Integer createType;

    @ApiModelProperty(name = "createTypeName", value = "创建方式名称")
    @ExcelProperty(value = {"房产住户表", "创建方式"}, index = 14)
    private String createTypeName;

}
