package com.storlead.sales.pojo.entity.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.storlead.framework.annotate.Dict;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.sales.pojo.dto.customer.CustomerCompanyAddDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户企业信息表
 * </p>
 *
 * @author YPZ
 * @since 2024-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("customer_company")
@ApiModel(value="CustomerCompanyEntity对象", description="客户企业信息表")
public class CustomerCompanyEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户企业信息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联客户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "企业名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "企业规模value（对应字典企业规模状态value）")
    @TableField("scale_dict_value")
    @Dict(dictCode = "company_scale",valueField = "scaleName")
    private Long scaleDictValue;

    @ApiModelProperty(value = "企业规模value（对应字典企业规模状态value）")
    @TableField(exist = false)
    private String scaleName;

    @ApiModelProperty(value = "企业网址")
    @TableField("website")
    private String website;

    @ApiModelProperty(value = "所属行业")
    @TableField("industry")
    private String industry;

    @ApiModelProperty(value = "通信地址")
    @TableField("communication_address")
    private String communicationAddress;

    @ApiModelProperty(value = "邮政编码")
    @TableField("postcode")
    private String postcode;

    @ApiModelProperty(value = "传真号码")
    @TableField("fax_number")
    private String faxNumber;

    @ApiModelProperty(value = "备用邮箱1")
    @TableField("email1")
    private String email1;
    @ApiModelProperty(value = "备用邮箱2")
    @TableField("email2")
    private String email2;
    @ApiModelProperty(value = "备用邮箱3")
    @TableField("email3")
    private String email3;

    @ApiModelProperty(value = "备用网址1")
    @TableField("website1")
    private String website1;
    @ApiModelProperty(value = "备用网址2")
    @TableField("website2")
    private String website2;
    @ApiModelProperty(value = "备用网址3")
    @TableField("website3")
    private String website3;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "联系电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty(value = "归属人姓名")
    @TableField(exist = false)
    private String ownerByName;


}
