package com.sifang.modules.customer.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "crm_customer_entry_tenant")
public class CustomerEntryTenant implements Serializable {

    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    private String id;

    /**
     * 归属的代理商id
     */
    private String traderId;

    /**
     * 租户分类: 1.个人 2.单位
     */
    private String tenantType;

    /**
     * 业主姓名/单位名称
     */
    private String tenantName;

    /**
     * 性别：MALE:男 FEMALE:女 UNKNOW:未知
     */
    private String gender;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 出生日期
     */
    private Date birthdayDate;

    /**
     * 身份证生效日
     */
    private Date icValidityBegin;

    /**
     * 身份证到期日
     */
    private Date icValidityEnd;


    @Transient
    private String birthdayDate1;


    @Transient
    private String icValidityBegin1;


    @Transient
    private String icValidityEnd1;

    /**
     * 联系方式
     */
    private String mobile;

    /**
     * 省
     */
    private String province;

    /**
     *市
     */
    private String city;

    /**
     * 区县
     */
    private String area;

    /**
     * 街道
     */
    private String street;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * 身份证号
     */
    private String idCode;

    /**
     * 身份证照片正面
     */
    private String idCardFront;

    /**
     * 身份证照片正反面
     */
    private String idCardBack;

    /**
     * 法人/组织负责人姓名，当前承租人为法人时要求必填
     */
    private String corp;

    /**
     * 法人登记注册号类型：07.统一社会信用代码 30.组织机构代码
     */
    private String regnoType;

    /**
     * 法人登记注册号码：统一社会信用代码
     */
    private String regno;

    /**
     * 文件图片地址，统一社会信用代码证书/营业执照
     */
    private String regnoUrl;

    /**
     * 初始关联的电站id
     */
    private String entryId;

    /**
     * 状态：0.已删除 1.正常
     */
    private String status;

    /**
     * 信息预审状态，0.待预审 1.预审通过 2.预审驳回
     */
    private String yxFlag;

    /**
     * 创建人user_id
     */
    private String createBy;

    /**
     * 创建人姓名-业务员
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createTime;

    public String getBirthdayDate1() {
        return birthdayDate1;
    }

    public void setBirthdayDate1(String birthdayDate1) {
        this.birthdayDate1 = birthdayDate1;
    }

    public String getIcValidityBegin1() {
        return icValidityBegin1;
    }

    public void setIcValidityBegin1(String icValidityBegin1) {
        this.icValidityBegin1 = icValidityBegin1;
    }

    public String getIcValidityEnd1() {
        return icValidityEnd1;
    }

    public void setIcValidityEnd1(String icValidityEnd1) {
        this.icValidityEnd1 = icValidityEnd1;
    }

    public Date getBirthdayDate() {
        return birthdayDate;
    }

    public void setBirthdayDate(Date birthdayDate) {
        this.birthdayDate = birthdayDate;
    }

    public Date getIcValidityBegin() {
        return icValidityBegin;
    }

    public void setIcValidityBegin(Date icValidityBegin) {
        this.icValidityBegin = icValidityBegin;
    }

    public Date getIcValidityEnd() {
        return icValidityEnd;
    }

    public void setIcValidityEnd(Date icValidityEnd) {
        this.icValidityEnd = icValidityEnd;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTraderId() {
        return traderId;
    }

    public void setTraderId(String traderId) {
        this.traderId = traderId;
    }

    public String getTenantType() {
        return tenantType;
    }

    public void setTenantType(String tenantType) {
        this.tenantType = tenantType;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public String getIdCode() {
        return idCode;
    }

    public void setIdCode(String idCode) {
        this.idCode = idCode;
    }

    public String getIdCardFront() {
        return idCardFront;
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = idCardFront;
    }

    public String getIdCardBack() {
        return idCardBack;
    }

    public void setIdCardBack(String idCardBack) {
        this.idCardBack = idCardBack;
    }

    public String getCorp() {
        return corp;
    }

    public void setCorp(String corp) {
        this.corp = corp;
    }

    public String getRegnoType() {
        return regnoType;
    }

    public void setRegnoType(String regnoType) {
        this.regnoType = regnoType;
    }

    public String getRegno() {
        return regno;
    }

    public void setRegno(String regno) {
        this.regno = regno;
    }

    public String getRegnoUrl() {
        return regnoUrl;
    }

    public void setRegnoUrl(String regnoUrl) {
        this.regnoUrl = regnoUrl;
    }

    public String getEntryId() {
        return entryId;
    }

    public void setEntryId(String entryId) {
        this.entryId = entryId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getYxFlag() {
        return yxFlag;
    }

    public void setYxFlag(String yxFlag) {
        this.yxFlag = yxFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
