package com.mortals.xhx.module.company.model;
import java.util.List;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.company.model.vo.CompanyVo;
import com.mortals.xhx.module.company.model.CompanyLabelsEntity;
import lombok.Data;
/**
 * 公司实体对象
 *
 * @author zxfei
 * @date 2024-12-05
 */
@Data
public class CompanyEntity extends CompanyVo {
    private static final long serialVersionUID = 1L;

    /**
     * 公司名称
     */
    @Excel(name = "公司名称")
    private String companyName;
    /**
     * 公司编码
     */
    private String companyCode;
    /**
     * 注册号
     */
    private String registrationNumber;
    /**
     * 法定代表人
     */
    private String legalRepresentative;
    /**
     * 注册资本
     */
    private String registeredCapital;
    /**
     * 公司类型
     */
    private String companyType;
    /**
     * 经营范围
     */
    private String businessScope;
    /**
     * 经营地址
     */
    private String businessAdress;
    /**
     * 所在地
     */
    private String location;
    /**
     * 所属区域编码
     */
    private String areaCode;
    /**
     * 所属区域名称
     */
    private String areaName;
    /**
     * 联系电话
     */
    private String contactPhone;
    /**
     * 电子邮件地址
     */
    private String email;
    /**
     * 公司网站
     */
    private String website;
    /**
     * 税务登记号
     */
    private String taxRegistrationNumber;
    /**
     * 社会信用代码
     */
    private String socialCreditCode;
    /**
     * 商标信息
     */
    private String trademarkInfo;
    /**
     * 网站历史备案信息
     */
    private String websiteRegistrationInfo;
    /**
     * 员工总数
     */
    private Integer totalEmployees;
    /**
     * 软件著作权数量
     */
    private Integer softNum;
    /**
     * 专利数量
     */
    private Integer patentNum;
    /**
     * 历史发展
     */
    private String hisDevelop;
    /**
     * 经度
     */
    private String lon;
    /**
     * 纬度
     */
    private String lati;
    /**
     * 企业logo
     */
    private String logoPath;
    /**
     * 企业视频
     */
    private String companyVideoPath;
    /**
     * 企业宣传图片
     */
    private String companyPicPath;
    /**
     * 公司介绍
     */
    private String companyIntroduction;
    /**
     * 公司文化
     */
    private String companyCulture;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 成立日期
     */
    private Date establishDate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 背景图片
     */
    private String background;
    /**
     * 公司标注信息
     */
    private List<CompanyLabelsEntity> companyLabelsList=new ArrayList<>();;
    public List<CompanyLabelsEntity> getCompanyLabelsList(){
        return companyLabelsList;
    }

    public void setCompanyLabelsList(List<CompanyLabelsEntity> companyLabelsList){
        this.companyLabelsList = companyLabelsList;
    }
    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof CompanyEntity) {
            CompanyEntity tmp = (CompanyEntity) obj;
            if (this.getId() == tmp.getId()) {
                return true;
            }
        }
        return false;
    }

    public void initAttrValue(){
        this.companyName = "";
        this.companyCode = "";
        this.registrationNumber = "";
        this.legalRepresentative = "";
        this.registeredCapital = "";
        this.companyType = "";
        this.businessScope = "";
        this.businessAdress = "";
        this.location = "";
        this.areaCode = "";
        this.areaName = "";
        this.contactPhone = "";
        this.email = "";
        this.website = "";
        this.taxRegistrationNumber = "";
        this.socialCreditCode = "";
        this.trademarkInfo = "";
        this.websiteRegistrationInfo = "";
        this.totalEmployees = 0;
        this.softNum = 0;
        this.patentNum = 0;
        this.hisDevelop = "";
        this.lon = "";
        this.lati = "";
        this.logoPath = "";
        this.companyVideoPath = "";
        this.companyPicPath = "";
        this.companyIntroduction = "";
        this.companyCulture = "";
        this.sort = 0;
        this.establishDate = null;
        this.remark = "";
        this.background = "";
    }
}