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

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

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

    @ApiModelProperty(name = "customerType", value = "客户类型(1:机构 2:个人)")
    private Integer customerType;
    @ApiModelProperty(name = "customerTypeName", value = "客户类型名称")
    @ExcelProperty(value = {"客户档案表", "客户类型"}, index = 2)
    private String customerTypeName;

    @ApiModelProperty(name = "customerCategory", value = "客户类别(1:房源业主 2:业主成员 3:房源租客 4:租客成员 5:开发商 6:服务商 7:其他)")
    private Integer customerCategory;
    @ApiModelProperty(name = "customerCategoryName", value = "客户类别名称")
    @ExcelProperty(value = {"客户档案表", "客户类别"}, index = 3)
    private String customerCategoryName;

    @ApiModelProperty(name = "customerName", value = "客户名称")
    @ExcelProperty(value = {"客户档案表", "客户名称"}, index = 4)
    private String customerName;

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

    @ApiModelProperty(name = "idTypeName", value = "证件类型名称")
    @ExcelProperty(value = {"客户档案表", "证件类型"}, index = 5)
    private String idTypeName;

    @ApiModelProperty(name = "idNo", value = "证件号码")
    @ExcelProperty(value = {"客户档案表", "证件号码"}, index = 6)
    private String idNo;

    @ApiModelProperty(name = "linkManOne", value = "联系人1")
    @ExcelProperty(value = {"客户档案表", "联系人1"}, index = 7)
    private String linkManOne;

    @ApiModelProperty(name = "linkPhoneOne", value = "联系电话1")
    @ExcelProperty(value = {"客户档案表", "联系电话1"}, index = 8)
    private String linkPhoneOne;

    @ApiModelProperty(name = "linkManTwo", value = "联系人2")
    @ExcelProperty(value = {"客户档案表", "联系人2"}, index = 9)
    private String linkManTwo;

    @ApiModelProperty(name = "linkPhoneTwo", value = "联系电话2")
    @ExcelProperty(value = {"客户档案表", "联系电话2"}, index = 10)
    private String linkPhoneTwo;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    @ExcelProperty(value = {"客户档案表", "创建时间"}, index = 11)
    private Date createTime;

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

    @ApiModelProperty(name = "createTypeName", value = "创建方式名称)")
    @ExcelProperty(value = {"客户档案表", "创建方式"}, index = 12)
    private String createTypeName;
}
