示例#1
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', '-')
示例#2
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', '-')