package com.yuchen.saas.manage.user.api.vo.sasscompany;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 宋少挺
 */
@Data
@ApiModel(value = "企业列表", description = "企业列表")
public class CompanyDetailListVo {
    @ApiModelProperty(value = "企业id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;
    @ApiModelProperty(value = "园区id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long parkId;
    @ApiModelProperty(value = "园区名称")
    private String parkName;
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    @ApiModelProperty(value = "所属行业")
    private String companyTrade;
    @ApiModelProperty(value = "所属行业")
    private String companyTradeName;
    @ApiModelProperty(value = "企业规模")
    private String companyScope;
    @ApiModelProperty(value = "企业规模")
    private String companyScopeName;
    @ApiModelProperty(value = "联系人")
    private String linkMan;
    @ApiModelProperty(value = "绑定手机")
    private String phone;
    @ApiModelProperty(value = "注册来源 1：PC端创建，2小程序端创建")
    private Integer source;
    @ApiModelProperty(value = "企业类型")
    private Integer type;
    @ApiModelProperty(value = "账号状态")
    private Integer status;
    @ApiModelProperty(value = "登记时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "法人")
    private String legalPerson;
    @ApiModelProperty(value = "统一信用代码")
    private String creditCode;
    @ApiModelProperty(value = "证件类型")
    private Integer creditType;
    @ApiModelProperty(value = "入驻时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date settleTime;
    @ApiModelProperty(value = "入驻文件")
    private String settleFile;
    @ApiModelProperty(value = "入驻面积")
    private String settleArea;
    @ApiModelProperty(value = "入驻有效期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date settleEffectiveTimeStart;
    @ApiModelProperty(value = "入驻有效期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date settleEffectiveTimeEnd;
    @ApiModelProperty(value = "省")
    private String province;
    @ApiModelProperty(value = "省名称")
    private String provinceName;
    @ApiModelProperty(value = "市")
    private String city;
    @ApiModelProperty(value = "市名称")
    private String cityName;
    @ApiModelProperty(value = "区/县")
    private String county;
    @ApiModelProperty(value = "区/县名称")
    private String countyName;
    @ApiModelProperty(value = "镇/街道")
    private String town;
    @ApiModelProperty(value = "镇/街道名称")
    private String townName;
    @ApiModelProperty(value = "详细地址")
    private String  detailAddress;
    @ApiModelProperty(value = "注册地址")
    private String address;
    @ApiModelProperty(value = "是否认证")
    private Integer cerStatus;
    @ApiModelProperty(value = "证件有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cerEffectiveTime;

    @ApiModelProperty(value = "子企业数量")
    private Integer childen;
    @ApiModelProperty(value = "登记车辆数")
    private Integer cars;
    @ApiModelProperty(value = "登记员工数")
    private Integer staffs;
    @ApiModelProperty(value = "车位数")
    private Integer parkingPlaces;

    @ApiModelProperty(value = "是否入驻 0:未知、1:未入住、2:已入驻")
    private Integer settleState;

    @ApiModelProperty(value = "父级企业id")
    private Long parentId;

    @ApiModelProperty(value = "父级企业名称")
    private String companyParentName;

}
