Esempio n. 1
0
 def __additional__(src: dict, company: Company):
     # 公司英文名
     company.english_name = src.get('property3')
     if not company.english_name:
         company.english_name = src.get('nameEn', '-')
     # 公司注册机构
     company.register_institute = src.get('regInstitute', '-')
     # 公司网站地址集
     company.websites = src.get('websiteList', '-')
     # 公司实缴资本
     company.actual_capital = src.get('actualCapital', '缺省')
     # 公司曾用名
     company.used_name = src.get('historyNames', '-')
     # 公司员工人数
     company.staffs = src.get('socialStaffNum', None)
     if not company.staffs:
         company.staffs = src.get('staffNum', 1)
     # 公司纳税地址
     company.tax_address = src.get('taxAddress', None)
     if not company.tax_address:
         company.tax_address = src.get('regLocation', '-')
     # 公司纳税银行
     company.taxpayer_bank = src.get('taxBankName', '-')
     # 公司涉足领域标签
     company.portraits = src.get('portray', [])
     if not company.logo:
         company.logo = src.get('logo')
     if not company.company_desc:
         company.company_desc = src.get('baseInfo', '-')
Esempio n. 2
0
 def __copy_extras__(src: dict, company: Company):
     company.homepage = src.get('websiteList', '-')
     company.register_code = src.get('regNumber', '-')
     company.organization_code = src.get('orgNumber', '-')
     company.english_name = src.get('property3', '-')
     company.authorization = src.get('regInstitute', '-')
     company.actual_capital = src.get('actualCapital', '缺省')
     company.industry = src.get('industry', '-')
     company.used_name = src.get('historyNames', '-')
Esempio n. 3
0
 def assembly_detail(cls, company: Company, raw_company_detail: dict):
     company.homepage = raw_company_detail.get('WebSite', '-')[0:30]
     company.register_code = raw_company_detail.get('No', '-')
     company.organization_code = raw_company_detail.get('OrgNo', '-')
     company.english_name = raw_company_detail.get('EnglishName', '-')
     company.authorization = raw_company_detail.get('BelongOrg', '-')
     company.actual_capital = raw_company_detail.get('RealCapi', '缺省')
     company.industry = raw_company_detail.get('Industry',
                                               dict()).get('Industry', '-')
     company.used_name = raw_company_detail.get('OriginalName', '-')