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', '-')
def __another_info__(brand_and_agency: dict, company: Company): # 公司融资轮次 company.financing_round = brand_and_agency.get("round", "未知") # 公司竟品信息 company.competitions = brand_and_agency.get("jingpinName", []) # 公司logo company.logo = brand_and_agency.get("logo") # 公司简介 company.company_desc = brand_and_agency.get("intro")