预警通接口测试

This commit is contained in:
wcq 2023-04-06 15:41:47 +08:00
parent 8503cc5d51
commit 08e1a686d1
10 changed files with 408 additions and 65 deletions

View File

@ -43,7 +43,7 @@ def delete_company_all_info(db: Session, company_id):
db.commit()
def date_value_to_date(date_value,value_type="str"):
def date_value_to_date(date_value, value_type="str"):
if date_value:
if value_type == "str":
if "-" in date_value:
@ -51,7 +51,7 @@ def date_value_to_date(date_value,value_type="str"):
else:
return datetime.strptime(date_value, '%Y%m%d').date()
if value_type == "int":
return datetime.fromtimestamp(date_value/1000).date()
return datetime.fromtimestamp(date_value / 1000).date()
def get_company_id(db: Session, company_name):
@ -67,14 +67,14 @@ def tianyancha_api_to_company_base_info(res: TianyanchaSchemas.CompanyBaseInfoRe
new_item.legal_person = res.legalPersonName
new_item.reg_capital = res.regCapital
# new_item.paid_capital =
new_item.estiblish_date = date_value_to_date(res.estiblishTime,'int')
new_item.approved_date = date_value_to_date(res.approvedTime,'int')
new_item.estiblish_date = date_value_to_date(res.estiblishTime, 'int')
new_item.approved_date = date_value_to_date(res.approvedTime, 'int')
# new_item.license_duration=
new_item.reg_location = res.regLocation
new_item.credit_code = res.creditCode
new_item.social_staff_num = res.socialStaffNum
new_item.business_scope = res.businessScope
new_item.reg_status=res.regStatus
new_item.reg_status = res.regStatus
return new_item
@ -93,7 +93,7 @@ def yujingtong_api_to_company_shareholder_list(res: List[YujingtongSchemas.Share
new_item.company_id = company_id
new_item.name = item.ShareholderName
new_item.type = item.ShareholderType
new_item.amount = item.ShouldCapi/10000
new_item.amount = item.ShouldCapi / 10000
new_item.number = item.ShareholdeCode
new_item.percent = float(item.ShareholdingRatio)
new_item.reg_date = date_value_to_date(item.ContributionTime)
@ -107,7 +107,7 @@ def yujingtong_api_to_company_bank_lease_list(res: List[YujingtongSchemas.BankLo
new_item = CompanyBankLease()
new_item.company_id = company_id
new_item.amount = float(item.Amount)
new_item.third_name = item.BankName
new_item.third_name = item.Bankinfo[0].BankName if item.Bankinfo else None
new_item.start_date = date_value_to_date(item.Begindate)
new_item.end_date = date_value_to_date(item.Enddate)
new_item.coupon = item.Rate
@ -118,15 +118,18 @@ def yujingtong_api_to_company_bank_lease_list(res: List[YujingtongSchemas.BankLo
return new_item_list
def yujingtong_api_to_company_credit_rating(res: YujingtongSchemas.MainRatingDataInfo, company_id):
new_item = CompanyCreditRating()
new_item.company_id = company_id
new_item.result = res.thisRaiting
new_item.rate_date = date_value_to_date(res.rantingDate)
new_item.publish_date = date_value_to_date(res.declaredate)
new_item.outlook = res.raitingOutlook
new_item.rate_agency = res.raitingOrgName
return new_item
def yujingtong_api_to_company_credit_rating_list(res: List[YujingtongSchemas.MainRatingDataInfo], company_id):
new_item_list = []
for item in res:
new_item = CompanyCreditRating()
new_item.company_id = company_id
new_item.result = item.thisRaiting
new_item.rate_date = date_value_to_date(item.rantingDate)
new_item.publish_date = date_value_to_date(item.declaredate)
new_item.outlook = item.raitingOutlook
new_item.rate_agency = item.raitingOrgName
new_item_list.append(new_item)
return new_item_list
def yujingtong_api_to_company_guarantee(res: List[YujingtongSchemas.GuaranteeDetailsItemInfo], company_id):
@ -158,7 +161,7 @@ def yujingtong_api_to_company_judicial_document(res: List[YujingtongSchemas.Judg
new_item.reason = item.CaseReason
new_item.amount = item.CaseAmount
# new_item.identity=item.
new_item.result = item.JudgmentResult
# new_item.result = item.JudgmentResult
new_item.court = item.Court
new_item.publish_date = item.PublishDate
new_item_list.append(new_item)
@ -171,7 +174,7 @@ def yujingtong_api_to_company_other_lease(res: List[YujingtongSchemas.OtherFinan
new_item = CompanyOtherLease()
new_item.company_id = company_id
new_item.type = item.Type
new_item.third_name = item.InvestorName
new_item.third_name = ",".join([item['InvestorName'] for item in item.Investorinfo])
new_item.amount = item.Amount
new_item.duration = item.Timelimit
new_item.coupon = item.Rate
@ -202,7 +205,7 @@ def yujingtong_api_to_company_trust_lease(res: List[YujingtongSchemas.TrustFinan
for item in res:
new_item = CompanyTrustLease()
new_item.company_id = company_id
new_item.third_name = item.TrustcompanyName
new_item.third_name = ",".join([it["TrustcompanyName"] for it in item.Trustcompanyinfo])
new_item.amount = item.Amount
new_item.start_date = date_value_to_date(item.Begindate)
new_item.end_date = date_value_to_date(item.Enddate)
@ -212,5 +215,3 @@ def yujingtong_api_to_company_trust_lease(res: List[YujingtongSchemas.TrustFinan
# new_item.remark =
return new_item_list

View File

@ -54,8 +54,8 @@ def area_economic_data_load(db: Session, area_id: int, year: int):
new_area_industry.secondary_industry = area_economic_res.SEC_IND
new_area_industry.tertiary_Industry = area_economic_res.TER_IND
new_area_industry.industrial_added_value = area_economic_res.GRO_VAL_IND_INC
new_area_industry.industrial_output = area_economic_res.GRO_VAL_IND
new_area_industry.industrial_output_growth_rate = area_economic_res.GRO_VAL_IND_RATE
# new_area_industry.industrial_output = area_economic_res.GRO_VAL_IND
# new_area_industry.industrial_output_growth_rate = area_economic_res.GRO_VAL_IND_RATE
check_if_created_then_add(db, new_area_industry)
##
new_area_livelihood = AreaLivelihood()
@ -86,7 +86,7 @@ def area_economic_data_load(db: Session, area_id: int, year: int):
new_area_invest = AreaInvest()
new_area_invest.area_id = area_id
new_area_invest.count_value = year
new_area_invest.fixed_asset_investment = area_economic_res.FIXED_AST_IVM
# new_area_invest.fixed_asset_investment = area_economic_res.FIXED_AST_IVM
new_area_invest.fixed_asset_investment_growth_rate = area_economic_res.FIXED_AST_IVM_RATE
new_area_invest.real_estate_investment = area_economic_res.INV_REAL_EST
check_if_created_then_add(db, new_area_invest)

View File

@ -22,12 +22,19 @@ def check_if_created_then_add_or_update(db: Session, new_model, update=False):
"""
if type(new_model) == list:
for new_model_item in new_model:
query = db.query(new_model_item.__class__).filter_by(**new_model_item.to_dict())
if getattr(new_model_item.__class__, 'company_id') and getattr(new_model_item.__class__, 'company_id').primary_key:
query = db.query(new_model_item.__class__).filter_by(company_id=new_model_item.to_dict()['company_id'])
else:
query = db.query(new_model_item.__class__).filter_by(**new_model_item.to_dict())
item = query.first()
if not item:
db.add(new_model_item)
else:
query = db.query(new_model.__class__).filter_by(**new_model.to_dict())
print(new_model, new_model.__class__)
if getattr(new_model.__class__, 'company_id') and getattr(new_model.__class__, 'company_id').primary_key:
query = db.query(new_model.__class__).filter_by(company_id=new_model.to_dict()['company_id'])
else:
query = db.query(new_model.__class__).filter_by(**new_model.to_dict())
item = query.first()
if not item:
db.add(new_model)
@ -69,7 +76,6 @@ def company_data_load(db: Session, require_info: CompanyDataLoadRequireInfo = No
)
check_if_created_then_add_or_update(db, new_company_plus_property_item)
# 公司实控人录入
actual_control_res = tianyancha_api.get_actual_control(company_name)
if actual_control_res:
@ -86,7 +92,7 @@ def company_data_load(db: Session, require_info: CompanyDataLoadRequireInfo = No
# 银行借款表信息录入
bank_loan_res = yujingtong_api.get_bank_loan_list(company_name)
if bank_loan_res:
new_company_bank_lease_item_list = (bank_loan_res, company_id)
new_company_bank_lease_item_list = yujingtong_api_to_company_bank_lease_list(bank_loan_res, company_id)
check_if_created_then_add_or_update(db, new_company_bank_lease_item_list)
# todo 发债情况信息录入
@ -100,8 +106,8 @@ def company_data_load(db: Session, require_info: CompanyDataLoadRequireInfo = No
# todo 主体评级信息录入
main_rating_res = yujingtong_api.get_main_rating(company_name)
if main_rating_res:
new_company_credit_rating_item = yujingtong_api_to_company_credit_rating(main_rating_res, company_id)
check_if_created_then_add_or_update(db, new_company_credit_rating_item)
new_company_credit_rating_item_list = yujingtong_api_to_company_credit_rating_list(main_rating_res, company_id)
check_if_created_then_add_or_update(db, new_company_credit_rating_item_list)
# todo 提供担保信息录入
guarantee_details_res = yujingtong_api.get_guarantee_details(company_name)
if guarantee_details_res:
@ -138,5 +144,3 @@ def company_data_load(db: Session, require_info: CompanyDataLoadRequireInfo = No
# 创投融资 无
db.commit()

View File

@ -13,7 +13,7 @@ router.include_router(OpinionInformationRouter.router)
@router.get('/industry_main/all_json', tags=['分类信息'], summary="行业分类")
def industry_main_all_json():
return json.load(open('static/industry_main.json', 'r', encoding='utf-8'))
return json.load(open('static/industry_main_use.json', 'r', encoding='utf-8'))
@router.get('/product_main/all_json', tags=['分类信息'], summary="产品分类")

View File

@ -166,11 +166,11 @@ class YujingtongApi:
{"公司名称": keyword, "数据类型": YujingtongApiDataType.公司股东信息列表})
return item_list
def get_main_rating(self, keyword) -> Schemas.MainRatingDataInfo:
def get_main_rating(self, keyword) -> List[Schemas.MainRatingDataInfo]:
"""
获取主体评级信息
"""
return self.get_data(self.config.main_rating_url, keyword,
return self.get_list(self.config.main_rating_url, keyword,
{"公司名称": keyword, "数据类型": YujingtongApiDataType.主体评级信息})
def get_guarantor_details(self, keyword) -> List[Schemas.GuarantorDetailsItemInfo]:
@ -207,7 +207,7 @@ class YujingtongApi:
full_url = f"{self.config.area_economic_url}?objs={area_id}&year={year}"
data = self.get_data_core(full_url,
{"区域编码": area_id, "年度": year, "数据类型": YujingtongApiDataType.区域经济})
return data
return data['data'][0]
def get_area_finance(self, area_id: int, year: int) -> Schemas.AreaFinanceInfo:
"""
@ -219,7 +219,7 @@ class YujingtongApi:
full_url = f"{self.config.area_finance_url}?objs={area_id}&year={year}"
data = self.get_data_core(full_url,
{"区域编码": area_id, "年度": year, "数据类型": YujingtongApiDataType.区域财政})
return data
return data['data'][0]
def get_area_debt(self, area_id: int, year: int) -> Schemas.AreaDebtInfo:
"""
@ -231,7 +231,7 @@ class YujingtongApi:
full_url = f"{self.config.area_debt_url}?objs={area_id}&year={year}"
data = self.get_data_core(full_url,
{"区域编码": area_id, "年度": year, "数据类型": YujingtongApiDataType.区域债务})
return data
return data['data'][0]
def get_financing_PEVC_list(self, keyword) -> List[Schemas.FinancingPEVCItemInfo]:
"""

View File

@ -91,14 +91,14 @@ class JudgementDocItemInfo:
JudgeDate: str # 裁判日期 date 2019910
PublishDate: str # 发布日期 date 2020319
PartyInfo: List # 当事人信息 List<Object>
LitigationStatus: str # 诉讼地位 string 被执行人
LitigationStatusCode: int # 诉讼地位代码 int 8
Lname: str # 当事人名称 string 广东富睿实业集团有限公司
CompanyID: str # 当事人机构代码 string 1002703906
JudgmentResult: str # 当事人判决结果 string 被终结执行
LnameAmountInvolved: str # 当事人涉案金额 string 元
JudgeDocInfo: str # 文书正文 string 49817FEE157A408A9D7EF24764...
CaseID: int # 所属司法案件ID long 78287080
# LitigationStatus: str # 诉讼地位 string 被执行人
# LitigationStatusCode: int # 诉讼地位代码 int 8
# Lname: str # 当事人名称 string 广东富睿实业集团有限公司
# CompanyID: str # 当事人机构代码 string 1002703906
# JudgmentResult: str # 当事人判决结果 string 被终结执行
# LnameAmountInvolved: str # 当事人涉案金额 string 元
JudgeDocInfo: str # 文书正文 string 49817FEE157A408A9D7EF24764...
CaseID: int # 所属司法案件ID long 78287080
class AreaEconomicInfo:
@ -246,13 +246,15 @@ class BankLoanItemInfo:
Enddate: str # 截止日期 date 2024-4-30 - -
Sketch: str # 方案简述 string - - -
Resource: str # 信息来源 string 债券公告 - -
Url: str # 信息来源附件 string https://hwfile.finchina.com/MR... - -
Bankinfo: str # 借款银行信息 List<Object> - - -
BankName: str # 银行名称 string 上海银行股份有限公司 - -
BankCode: str # 银行机构代码 string 1005895443 - -
Guarantorinfo: str # 担保人信息 List<Object> - - -
GuarantorName: str # 担保人名称 string - - -
GuarantorCode: str # 担保人机构代码 string - - -
Url: str # 信息来源附件 string https://hwfile.finchina.com/MR... -
Bankinfo:List # 借款银行信息 List<Object> - - -
# BankName: str # 银行名称 string 上海银行股份有限公司 - -
# BankCode: str # 银行机构代码 string 1005895443 - -
Guarantorinfo:List # 担保人信息 List<Object> - - -
# GuarantorName: str # 担保人名称 string - - -
# GuarantorCode: str # 担保人机构代码 string - - -
class TrustFinancingItemInfo:
@ -273,11 +275,11 @@ class TrustFinancingItemInfo:
Resource: str # 信息来源 string 信托公告 - -
Url: str # 信息来源附件 string - - -
Trustcompanyinfo: List # 信托公司信息 List<Object> - - -
TrustcompanyName: str # 信托公司名称 string 中融国际信托有限公司 - -
TrustcompanyCode: str # 信托公司机构代码 string 1011562306 - -
# TrustcompanyName: str # 信托公司名称 string 中融国际信托有限公司 - -
# TrustcompanyCode: str # 信托公司机构代码 string 1011562306 - -
Guarantorinfo: List # 担保人信息 List<Object> - - -
GuarantorName: str # 担保人名称 string 华夏幸福基业股份有限公司 - -
GuarantorCode: str # 担保人机构代码 string 1103628016 - -
# GuarantorName: str # 担保人名称 string 华夏幸福基业股份有限公司 - -
# GuarantorCode: str # 担保人机构代码 string 1103628016 - -
class LeasingFinancingItemInfo:
@ -331,8 +333,8 @@ class OtherFinancingItemInfo:
Resource: str # 信息来源 string 债券公告 - -
Url: str # 信息来源附件 string https://hwfile.finchina.com/MR... - -
Investorinfo: List # 出资人信息 List<Object> - - -
InvestorName: str # 出资人名称 string 中英益利资产管理股份有限公司 - -
InvestorCode: str # 出资人代码 string 1012316705 - -
# InvestorName: str # 出资人名称 string 中英益利资产管理股份有限公司 - -
# InvestorCode: str # 出资人代码 string 1012316705 - -
Guarantorinfo: List # 担保人信息 List<Object> - - -
GuarantorName: str # 担保人名称 string - - -
GuarantorCode: str # 担保人代码 string - - -
# GuarantorName: str # 担保人名称 string - - -
# GuarantorCode: str # 担保人代码 string - - -

12
init.py
View File

@ -14,8 +14,11 @@ def save_industry_main_json():
"""
db = common_db.get_db_i()
try:
tree = tree_table_to_json(db, IndustryMain, key_str='code')
json.dump({'data': tree}, open('static/industry_main.json', 'w', encoding="utf-8"), ensure_ascii=False, )
tree = []
for item in db.query(IndustryMain).filter_by(type='一级行业').all():
tree.append({"text": item.name, "value": item.code})
# tree = tree_table_to_json(db, IndustryMain, key_str='code')
json.dump({'data': tree}, open('static/industry_main_use.json', 'w', encoding="utf-8"), ensure_ascii=False, )
except Exception as e:
print_error(e)
finally:
@ -28,8 +31,11 @@ def save_product_main_json():
"""
db = common_db.get_db_i()
try:
# tree = []
# for item in db.query(ProductMain).filter_by(type='一级分类').all():
# tree.append({"text": item.name, "value": item.code})
tree = tree_table_to_json(db, ProductMain, key_str='code')
json.dump({'data': tree}, open('static/product_main.json', 'w', encoding="utf-8"), ensure_ascii=False, )
# json.dump({'data': tree}, open('static/product_main_use.json', 'w', encoding="utf-8"), ensure_ascii=False, )
except Exception as e:
print_error(e)
finally:

View File

@ -0,0 +1 @@
{"data": [{"text": "农林牧渔", "value": 110000}, {"text": "基础化工", "value": 220000}, {"text": "钢铁", "value": 230000}, {"text": "有色金属", "value": 240000}, {"text": "电子", "value": 270000}, {"text": "汽车", "value": 280000}, {"text": "家用电器", "value": 330000}, {"text": "食品饮料", "value": 340000}, {"text": "纺织服饰", "value": 350000}, {"text": "轻工制造", "value": 360000}, {"text": "医药生物", "value": 370000}, {"text": "公用事业", "value": 410000}, {"text": "交通运输", "value": 420000}, {"text": "房地产", "value": 430000}, {"text": "商贸零售", "value": 450000}, {"text": "社会服务", "value": 460000}, {"text": "银行", "value": 480000}, {"text": "非银金融", "value": 490000}, {"text": "综合", "value": 510000}, {"text": "建筑材料", "value": 610000}, {"text": "建筑装饰", "value": 620000}, {"text": "电力设备", "value": 630000}, {"text": "机械设备", "value": 640000}, {"text": "国防军工", "value": 650000}, {"text": "计算机", "value": 710000}, {"text": "传媒", "value": 720000}, {"text": "通信", "value": 730000}, {"text": "煤炭", "value": 740000}, {"text": "石油石化", "value": 750000}, {"text": "环保", "value": 760000}, {"text": "美容护理", "value": 770000}]}

View File

@ -1 +1,329 @@
{"data": [{"code": "A", "type": "一级分类", "name": "货物", "belong": null, "children": [{"code": "A01000000", "type": "二级分类", "name": "房屋和构筑物", "belong": "A", "children": []}, {"code": "A02000000", "type": "二级分类", "name": "设备", "belong": "A", "children": []}, {"code": "A03000000", "type": "二级分类", "name": "文物和陈列品", "belong": "A", "children": []}, {"code": "A04000000", "type": "二级分类", "name": "图书和档案", "belong": "A", "children": []}, {"code": "A05000000", "type": "二级分类", "name": "家具和用具", "belong": "A", "children": []}, {"code": "A06000000", "type": "二级分类", "name": "特种动植物", "belong": "A", "children": []}, {"code": "A07000000", "type": "二级分类", "name": "物资", "belong": "A", "children": []}, {"code": "A08000000", "type": "二级分类", "name": "无形资产", "belong": "A", "children": []}]}, {"code": "B", "type": "一级分类", "name": "工程", "belong": null, "children": [{"code": "B01000000", "type": "二级分类", "name": "房屋施工", "belong": "B", "children": []}, {"code": "B02000000", "type": "二级分类", "name": "构筑物施工", "belong": "B", "children": []}, {"code": "B03000000", "type": "二级分类", "name": "施工工程准备", "belong": "B", "children": []}, {"code": "B04000000", "type": "二级分类", "name": "预制构件组装和装配", "belong": "B", "children": []}, {"code": "B05000000", "type": "二级分类", "name": "专业施工", "belong": "B", "children": []}, {"code": "B06000000", "type": "二级分类", "name": "安装工程", "belong": "B", "children": []}, {"code": "B07000000", "type": "二级分类", "name": "装修工程", "belong": "B", "children": []}, {"code": "B08000000", "type": "二级分类", "name": "修缮工程", "belong": "B", "children": []}, {"code": "B09000000", "type": "二级分类", "name": "工程设备租赁", "belong": "B", "children": []}, {"code": "B99000000", "type": "二级分类", "name": "其他建筑工程", "belong": "B", "children": []}]}, {"code": "C", "type": "一级分类", "name": "服务", "belong": null, "children": [{"code": "C01000000", "type": "二级分类", "name": "科学研究和试验开发", "belong": "C", "children": []}, {"code": "C02000000", "type": "二级分类", "name": "教育服务", "belong": "C", "children": []}, {"code": "C03000000", "type": "二级分类", "name": "就业服务", "belong": "C", "children": []}, {"code": "C04000000", "type": "二级分类", "name": "医疗卫生服务", "belong": "C", "children": []}, {"code": "C05000000", "type": "二级分类", "name": "社会服务", "belong": "C", "children": []}, {"code": "C06000000", "type": "二级分类", "name": "文化、体育、娱乐服务", "belong": "C", "children": []}, {"code": "C07000000", "type": "二级分类", "name": "生态环境保护和治理服务", "belong": "C", "children": []}, {"code": "C08000000", "type": "二级分类", "name": "能源的生产和分配服务", "belong": "C", "children": []}, {"code": "C09000000", "type": "二级分类", "name": "农林牧渔服务", "belong": "C", "children": []}, {"code": "C10000000", "type": "二级分类", "name": "采矿业和制造业服务", "belong": "C", "children": []}, {"code": "C11000000", "type": "二级分类", "name": "工程管理服务", "belong": "C", "children": []}, {"code": "C12000000", "type": "二级分类", "name": "水利管理服务", "belong": "C", "children": []}, {"code": "C13000000", "type": "二级分类", "name": "公共设施管理服务", "belong": "C", "children": []}, {"code": "C14000000", "type": "二级分类", "name": "公园和游览景区服务", "belong": "C", "children": []}, {"code": "C15000000", "type": "二级分类", "name": "交通运输和仓储服务", "belong": "C", "children": []}, {"code": "C16000000", "type": "二级分类", "name": "信息技术服务", "belong": "C", "children": []}, {"code": "C17000000", "type": "二级分类", "name": "电信和其他信息传输服务", "belong": "C", "children": []}, {"code": "C18000000", "type": "二级分类", "name": "金融服务", "belong": "C", "children": []}, {"code": "C19000000", "type": "二级分类", "name": "专业技术服务", "belong": "C", "children": []}, {"code": "C20000000", "type": "二级分类", "name": "鉴证咨询服务", "belong": "C", "children": []}, {"code": "C21000000", "type": "二级分类", "name": "房地产服务", "belong": "C", "children": []}, {"code": "C22000000", "type": "二级分类", "name": "会议、展览、住宿和餐饮服务", "belong": "C", "children": []}, {"code": "C23000000", "type": "二级分类", "name": "商务服务", "belong": "C", "children": []}, {"code": "C24000000", "type": "二级分类", "name": "政府和社会资本合作服务", "belong": "C", "children": []}, {"code": "C99000000", "type": "二级分类", "name": "其他服务", "belong": "C", "children": []}]}]}
{
"data": [
{
"code": "A",
"type": "一级分类",
"name": "货物",
"belong": null,
"children": [
{
"code": "A01000000",
"type": "二级分类",
"name": "房屋和构筑物",
"belong": "A",
"children": []
},
{
"code": "A02000000",
"type": "二级分类",
"name": "设备",
"belong": "A",
"children": []
},
{
"code": "A03000000",
"type": "二级分类",
"name": "文物和陈列品",
"belong": "A",
"children": []
},
{
"code": "A04000000",
"type": "二级分类",
"name": "图书和档案",
"belong": "A",
"children": []
},
{
"code": "A05000000",
"type": "二级分类",
"name": "家具和用具",
"belong": "A",
"children": []
},
{
"code": "A06000000",
"type": "二级分类",
"name": "特种动植物",
"belong": "A",
"children": []
},
{
"code": "A07000000",
"type": "二级分类",
"name": "物资",
"belong": "A",
"children": []
},
{
"code": "A08000000",
"type": "二级分类",
"name": "无形资产",
"belong": "A",
"children": []
}
]
},
{
"code": "B",
"type": "一级分类",
"name": "工程",
"belong": null,
"children": [
{
"code": "B01000000",
"type": "二级分类",
"name": "房屋施工",
"belong": "B",
"children": []
},
{
"code": "B02000000",
"type": "二级分类",
"name": "构筑物施工",
"belong": "B",
"children": []
},
{
"code": "B03000000",
"type": "二级分类",
"name": "施工工程准备",
"belong": "B",
"children": []
},
{
"code": "B04000000",
"type": "二级分类",
"name": "预制构件组装和装配",
"belong": "B",
"children": []
},
{
"code": "B05000000",
"type": "二级分类",
"name": "专业施工",
"belong": "B",
"children": []
},
{
"code": "B06000000",
"type": "二级分类",
"name": "安装工程",
"belong": "B",
"children": []
},
{
"code": "B07000000",
"type": "二级分类",
"name": "装修工程",
"belong": "B",
"children": []
},
{
"code": "B08000000",
"type": "二级分类",
"name": "修缮工程",
"belong": "B",
"children": []
},
{
"code": "B09000000",
"type": "二级分类",
"name": "工程设备租赁",
"belong": "B",
"children": []
},
{
"code": "B99000000",
"type": "二级分类",
"name": "其他建筑工程",
"belong": "B",
"children": []
}
]
},
{
"code": "C",
"type": "一级分类",
"name": "服务",
"belong": null,
"children": [
{
"code": "C01000000",
"type": "二级分类",
"name": "科学研究和试验开发",
"belong": "C",
"children": []
},
{
"code": "C02000000",
"type": "二级分类",
"name": "教育服务",
"belong": "C",
"children": []
},
{
"code": "C03000000",
"type": "二级分类",
"name": "就业服务",
"belong": "C",
"children": []
},
{
"code": "C04000000",
"type": "二级分类",
"name": "医疗卫生服务",
"belong": "C",
"children": []
},
{
"code": "C05000000",
"type": "二级分类",
"name": "社会服务",
"belong": "C",
"children": []
},
{
"code": "C06000000",
"type": "二级分类",
"name": "文化、体育、娱乐服务",
"belong": "C",
"children": []
},
{
"code": "C07000000",
"type": "二级分类",
"name": "生态环境保护和治理服务",
"belong": "C",
"children": []
},
{
"code": "C08000000",
"type": "二级分类",
"name": "能源的生产和分配服务",
"belong": "C",
"children": []
},
{
"code": "C09000000",
"type": "二级分类",
"name": "农林牧渔服务",
"belong": "C",
"children": []
},
{
"code": "C10000000",
"type": "二级分类",
"name": "采矿业和制造业服务",
"belong": "C",
"children": []
},
{
"code": "C11000000",
"type": "二级分类",
"name": "工程管理服务",
"belong": "C",
"children": []
},
{
"code": "C12000000",
"type": "二级分类",
"name": "水利管理服务",
"belong": "C",
"children": []
},
{
"code": "C13000000",
"type": "二级分类",
"name": "公共设施管理服务",
"belong": "C",
"children": []
},
{
"code": "C14000000",
"type": "二级分类",
"name": "公园和游览景区服务",
"belong": "C",
"children": []
},
{
"code": "C15000000",
"type": "二级分类",
"name": "交通运输和仓储服务",
"belong": "C",
"children": []
},
{
"code": "C16000000",
"type": "二级分类",
"name": "信息技术服务",
"belong": "C",
"children": []
},
{
"code": "C17000000",
"type": "二级分类",
"name": "电信和其他信息传输服务",
"belong": "C",
"children": []
},
{
"code": "C18000000",
"type": "二级分类",
"name": "金融服务",
"belong": "C",
"children": []
},
{
"code": "C19000000",
"type": "二级分类",
"name": "专业技术服务",
"belong": "C",
"children": []
},
{
"code": "C20000000",
"type": "二级分类",
"name": "鉴证咨询服务",
"belong": "C",
"children": []
},
{
"code": "C21000000",
"type": "二级分类",
"name": "房地产服务",
"belong": "C",
"children": []
},
{
"code": "C22000000",
"type": "二级分类",
"name": "会议、展览、住宿和餐饮服务",
"belong": "C",
"children": []
},
{
"code": "C23000000",
"type": "二级分类",
"name": "商务服务",
"belong": "C",
"children": []
},
{
"code": "C24000000",
"type": "二级分类",
"name": "政府和社会资本合作服务",
"belong": "C",
"children": []
},
{
"code": "C99000000",
"type": "二级分类",
"name": "其他服务",
"belong": "C",
"children": []
}
]
}
]
}

View File

@ -0,0 +1 @@
{"data": []}