Commit a87486f8 by 宋毅

tj

parent 1e2b9322
...@@ -423,28 +423,49 @@ class GsbIcSearchApi extends ApiBase { ...@@ -423,28 +423,49 @@ class GsbIcSearchApi extends ApiBase {
"from": from, "from": from,
"size": pageSize, "size": pageSize,
"_source": [ "_source": [
"company_id",
"company_province", "company_province",
"gsb_city",
"company_domain", "company_domain",
"legal_person", "legal_person",
"reg_status",
"reg_unit",
"reg_capital",
"estibish_time",
"credit_code",
"reg_number", "reg_number",
"org_number",
"company_type",
"reg_institute",
"reg_location",
"business_scope",
"approved_time",
"company_org_type", "company_org_type",
"reg_location",
"estiblish_time",
"from_time", "from_time",
"to_time", "to_time",
"reg_unit" "business_scope",
"reg_institute",
"approved_time",
"reg_status",
"reg_capital",
"reg_unit",
"org_number",
"credit_code",
"gsb_company_cate_1",
"gsb_company_cate_2",
"gsb_company_cate_3",
"company_type"
] ]
}; };
// company_province     :省份
// gsb_city     :市或区
// company_domain     :公司名称
// legal_person   :法人
// reg_number    :工商注册号
// company_org_type     :公司类型
// reg_location     :注册地址
// estiblish_time      :成立时间
// from_time 至 to_time :营业期限_开始 至 营业期限_结束
// business_scope      :经营范围
// reg_institute      :登记机关
// approved_time      :核准时间
// reg_status         :经营状态
// reg_capital/reg_unit :注册资本/注册资本_单位
// org_number :组织机构代码
// credit_code :统一社会信用代码
// gsb_company_cate_1 :行业大类一类
// gsb_company_cate_2 :行业大类二类
// gsb_company_cate_3 :行业大类三类
var rc = System.getObject("util.execClient"); var rc = System.getObject("util.execClient");
var rtn = null; var rtn = null;
try { try {
...@@ -470,27 +491,31 @@ class GsbIcSearchApi extends ApiBase { ...@@ -470,27 +491,31 @@ class GsbIcSearchApi extends ApiBase {
var time3 = new Date(c._source.to_time * 1000); var time3 = new Date(c._source.to_time * 1000);
c._source.to_time = time3.toLocaleDateString(); c._source.to_time = time3.toLocaleDateString();
} }
if (c._source.estibish_time != null) { if (c._source.estiblish_time != null) {
var time3 = new Date(c._source.estibish_time * 1000); var time3 = new Date(c._source.estiblish_time * 1000);
c._source.estibish_time = time3.toLocaleDateString(); c._source.estiblish_time = time3.toLocaleDateString();
} }
var source = { var source = {
companyProvince: c._source.company_province,
city: c._source.gsb_city,
name: c._source.company_domain, name: c._source.company_domain,
legalRepresentative: c._source.legal_person, legalRepresentative: c._source.legal_person,
managementState: c._source.reg_status,
registeredCapital: c._source.reg_capital + c._source.reg_unit || "万人民币",
foundedTime: c._source.estibish_time || "",
creditCode: c._source.credit_code,
registrID: c._source.reg_number, registrID: c._source.reg_number,
organizationCode: c._source.org_number, companyOrgType: c._source.company_org_type,
companyType: c._source.company_type,
registerOffice: c._source.reg_institute,
businessAddress: c._source.reg_location, businessAddress: c._source.reg_location,
foundedTime: c._source.estiblish_time || "",
businessTerm: c._source.from_time + "至" + c._source.to_time,
scope: c._source.business_scope, scope: c._source.business_scope,
registerOffice: c._source.reg_institute,
dateIssue: c._source.approved_time, dateIssue: c._source.approved_time,
companyProvince: c._source.company_province, managementState: c._source.reg_status,
companyOrgType: c._source.company_org_type, registeredCapital: c._source.reg_capital + c._source.reg_unit || "万人民币",
businessTerm: c._source.from_time + "至" + c._source.to_time, organizationCode: c._source.org_number,
creditCode: c._source.credit_code,
companyCate1: c._source.gsb_company_cate_1,
companyCate2: c._source.gsb_company_cate_2,
companyCate3: c._source.gsb_company_cate_3,
companyType: c._source.company_type
}; };
sources.push(source); sources.push(source);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment