|
@@ -0,0 +1,115 @@
|
|
|
+package com.pavis.app.saasbacken.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.pavis.app.saasbacken.form.TaxParam;
|
|
|
+import lombok.*;
|
|
|
+import org.springframework.data.elasticsearch.annotations.Document;
|
|
|
+import org.springframework.data.elasticsearch.annotations.Field;
|
|
|
+import org.springframework.data.elasticsearch.annotations.FieldType;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @program: saas-test
|
|
|
+ * @description: 企业库对应es信息
|
|
|
+ * @author: Guanzi
|
|
|
+ * @created: 2021/10/18 11:30
|
|
|
+ */
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+@NoArgsConstructor
|
|
|
+@AllArgsConstructor
|
|
|
+@Builder
|
|
|
+@Data
|
|
|
+// @Document(indexName = "saas_test")
|
|
|
+@Document(indexName = "push-test")
|
|
|
+public class ResourceLibraryEntity implements Serializable {
|
|
|
+
|
|
|
+ @TableId(type = IdType.ID_WORKER_STR)
|
|
|
+ private String id;
|
|
|
+ // 企业名称【(全名[可针对企业名称做dic词典]、关键词)、人才名称、专利名称、需求成功名称、产品名称、需求名称】
|
|
|
+ @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
|
|
|
+ private String name;
|
|
|
+ @Field(type = FieldType.Text,analyzer = "douhao",searchAnalyzer = "douhao")
|
|
|
+ private String district;
|
|
|
+ // 企业地址,不可拆分,todo 可不存储。
|
|
|
+ @Field(type = FieldType.Text,analyzer = "douhao",searchAnalyzer = "douhao")
|
|
|
+ private String registerAddress;
|
|
|
+ // 对应各表的主键id。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String uniqueId;
|
|
|
+ // 各资源库类型。6 企业库 等等。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String flag;
|
|
|
+ // 成立日期。
|
|
|
+ @Field(type = FieldType.Date)
|
|
|
+ private Date setupDate;
|
|
|
+ // 所属行业(包含八大领域)。
|
|
|
+ @Field(type = FieldType.Text,analyzer = "douhao",searchAnalyzer = "douhao")
|
|
|
+ private String industry;
|
|
|
+ // 国高领域。
|
|
|
+ @Field(type = FieldType.Text,analyzer = "douhao",searchAnalyzer = "douhao")
|
|
|
+ private String highfield;
|
|
|
+ // 研发、飞地等类型,是否是国高 【逗号分隔】。
|
|
|
+ @Field(type = FieldType.Text,analyzer = "douhao",searchAnalyzer = "douhao")
|
|
|
+ private String othertype;
|
|
|
+ // 创建时间。
|
|
|
+ @Field(type = FieldType.Date)
|
|
|
+ // private Date createTime;
|
|
|
+ private Date createTime;
|
|
|
+ // 国高认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String highIdentifiedYear;
|
|
|
+ // 省级重点企业研究院认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String keyProvincialIdentifiedYear;
|
|
|
+ // 省级企业研究院认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String provincialIdentifiedYear;
|
|
|
+ // 浙江省高新技术研究开发中心认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String highTechIdentifiedYear;
|
|
|
+ // 省科小认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String provincialTechSmallIdentifiedYear;
|
|
|
+ // 雏鹰计划认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String youngEaglesIdentifiedYear;
|
|
|
+ // 市级研发中心认定年份。
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String municipalResearchCenterIdentifiedYear;
|
|
|
+
|
|
|
+ // 飞地研发中心专职人员数
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer enclaveFulltimeStaffCount;
|
|
|
+ // 发明专利数量
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer patentCount;
|
|
|
+ // 软件著作权数量
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer softwareCopyrightCount;
|
|
|
+ // 实用新型数量
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer utilityLicensesCount;
|
|
|
+ // 成立年限
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer establishYear;
|
|
|
+ // 飞地研发中心面积
|
|
|
+ @Field(type = FieldType.Double)
|
|
|
+ private Double areaOfEnclave;
|
|
|
+ // 访问量
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer pageViews;
|
|
|
+ // 产值规模
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer productionScale;
|
|
|
+ // 年度营收
|
|
|
+ @Field(type = FieldType.Nested)
|
|
|
+ private List<TaxParam> annualRevenue;
|
|
|
+ // 允许扣除的研发费用
|
|
|
+ @Field(type = FieldType.Nested)
|
|
|
+ private List<TaxParam> rdDeductible;
|
|
|
+}
|