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 PropertyHouseOwnerExcelVo {

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

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

    @ApiModelProperty(name = "ownerType", value = "业主类型(1:机构 2:个人)")
    private Integer ownerType;

    @ApiModelProperty(name = "ownerType", value = "业主类型名称")
    @ExcelProperty(value = {"房产业主表", "业主类型"}, index = 2)
    private String ownerTypeName;

    @ApiModelProperty(name = "ownerName", value = "业主名称")
    @ExcelProperty(value = {"房产业主表", "业主名称"}, index = 3)
    private String ownerName;

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

    @ApiModelProperty(name = "idTypeName", value = "证件类型名称")
    @ExcelProperty(value = {"房产业主表", "证件类型"}, index = 4)
    private String idTypeName;

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

    @ApiModelProperty(name = "linkMan", value = "联系人")
    @ExcelProperty(value = {"房产业主表", "联系人"}, index = 6)
    private String linkMan;

    @ApiModelProperty(name = "linkPhone", value = "联系电话")
    @ExcelProperty(value = {"房产业主表", "联系电话"}, index = 7)
    private String linkPhone;

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

    @ApiModelProperty(name = "houseCode", value = "房间代码")
    @ExcelProperty(value = {"房产业主表", "房间代码"}, index = 8)
    private String houseCode;

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

}
