package com.gxwebsoft.credit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 附近企业
 *
 * @author 科技小王子
 * @since 2026-01-07 13:52:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CreditNearbyCompany对象", description = "附近企业")
public class CreditNearbyCompany implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "企业名称")
    private String name;

    @Schema(description = "登记状态")
    private String registrationStatus;

    @Schema(description = "法定代表人")
    private String legalPerson;

    @Schema(description = "注册资本")
    private String registeredCapital;

    @Schema(description = "成立日期")
    private String establishDate;

    @Schema(description = "统一社会信用代码")
    private String code;

    @Schema(description = "注册地址")
    private String address;

    @Schema(description = "注册地址邮编")
    private String postalCode;

    @Schema(description = "有效手机号")
    private String phone;

    @Schema(description = "更多电话")
    private String moreTel;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "邮箱")
    private String moreEmail;

    @Schema(description = "所在国家")
    private String country;

    @Schema(description = "所属省份")
    private String province;

    @Schema(description = "所属城市")
    private String city;

    @Schema(description = "所属区县")
    private String region;

    @Schema(description = "企业ID")
    private Integer companyId;

    @Schema(description = "主体企业")
    @TableField(exist = false)
    private String companyName;

    @Schema(description = "纳税人识别号")
    private String taxpayerCode;

    @Schema(description = "注册号")
    private String registrationNumber;

    @Schema(description = "组织机构代码")
    private String organizationalCode;

    @Schema(description = "参保人数")
    private String numberOfInsuredPersons;

    @Schema(description = "参保人数所属年报")
    private String annualReport;

    @Schema(description = "企业（机构）类型")
    private String institutionType;

    @Schema(description = "企业规模")
    private String companySize;

    @Schema(description = "营业期限")
    private String businessTerm;

    @Schema(description = "国标行业门类")
    private String nationalStandardIndustryCategories;

    @Schema(description = "国标行业大类")
    private String nationalStandardIndustryCategories2;

    @Schema(description = "国标行业中类")
    private String nationalStandardIndustryCategories3;

    @Schema(description = "国标行业小类")
    private String nationalStandardIndustryCategories4;

    @Schema(description = "曾用名")
    private String formerName;

    @Schema(description = "英文名")
    private String englishName;

    @Schema(description = "官网网址")
    private String domain;

    @Schema(description = "通信地址")
    private String mailingAddress;

    @Schema(description = "通信地址邮箱")
    private String mailingEmail;

    @Schema(description = "企业简介")
    private String companyProfile;

    @Schema(description = "经营范围")
    private String natureOfBusiness;

    @Schema(description = "电话")
    private String tel;

    @Schema(description = "企查查行业门类")
    private String nationalStandardIndustryCategories5;

    @Schema(description = "企查查行业大类")
    private String nationalStandardIndustryCategories6;

    @Schema(description = "企查查行业中类")
    private String nationalStandardIndustryCategories7;

    @Schema(description = "企查查行业小类")
    private String nationalStandardIndustryCategories8;

    @Schema(description = "链接")
    private String url;

    @Schema(description = "类型")
    private Integer type;

    @Schema(description = "上级id, 0是顶级")
    private Integer parentId;

    @Schema(description = "实缴资本")
    private String paidinCapital;

    @Schema(description = "登记机关")
    private String registrationAuthority;

    @Schema(description = "纳税人资质")
    private String taxpayerQualification;

    @Schema(description = "最新年报年份")
    private String latestAnnualReportYear;

    @Schema(description = "最新年报营业收入")
    private String latestAnnualReportOnOperatingRevenue;

    @Schema(description = "企查分")
    private String enterpriseScoreCheck;

    @Schema(description = "信用等级")
    private String creditRating;

    @Schema(description = "科创分")
    private String cechnologyScore;

    @Schema(description = "科创等级")
    private String cechnologyLevel;

    @Schema(description = "是否小微企业")
    private String smallEnterprise;

    @Schema(description = "是否有数据")
    private Boolean hasData;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "是否推荐")
    private Integer recommend;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "真实姓名")
    @TableField(exist = false)
    private String realName;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
