国家统计局年度规模以上工业企业主要经济指标,按企业规模、轻重工业、登记注册类型和三大门类分,含企业单位数、资产、负债、收入、利润等指标,1990 年起,保留历史修订版本
SELECT date, report_date, item_group, item_code, item_name, indicator_code, indicator_nameFROM cn_macro_industrial_enterprise_yearlyWHERE date >= '2026-11-03'ORDER BY dateLIMIT 10010 个字段
本表记录国家统计局发布的年度规模以上工业企业主要经济指标,一年的一个主体的一个指标一行,是长表。主体有全部规模以上工业企业、按企业规模(大中小型)、轻重工业、
按登记注册类型分(2022 年前)、按登记注册统计类别分(2023 年起)和三大门类(2023 年起);指标有企业单位数、资产、负债、所有者权益、收入、成本、费用、利润、用工等 42 个。
保留历史修订版本:同一年的数据被修订后新增一行,旧行保留,可以按 date 取任意时点当时已知的值。
按行业分的年度指标见 cn_macro_industrial_enterprise_industry_yearly,月度的企业指标见 cn_macro_industrial_enterprise_monthly。
{{data_start_date}};数据最新年份:{{data_end_date}}。各指标的起止年份不同:企业单位数、利润总额、资产总计从 1990 年起,营业收入等 2023 年起的新口径指标从 2023 年起;
还有一部分指标已停止发布,如应交增值税、主营业务税金及附加停在 2014 年,工业销售产值、出口交货值停在 2016 年,亏损企业单位数停在 2019 年| 关键字 | 释意 |
|---|---|
| date | 公布日期,本表首次抓到该版本数据的日期,不是统计局公告日期 |
| report_date | 报告期,取当年 12 月 31 日,如 2025-12-31 表示 2025 年 |
| item_code | 主体代码,整张表唯一 |
| indicator_code | 指标代码,整张表唯一 |
| 字段 | 释意 |
|---|---|
| date | 公布日期;上线前的历史年份按报告期末日后 365 天估算,年份被修订后新增一行,date 为抓到修订数据的日期 |
| report_date | 报告期,取当年 12 月 31 日 |
| item_group | 主体分组:total 全部规模以上工业企业,size 按企业规模,light_heavy 轻重工业,registration 按登记注册类型(2022 年前),registration_2023 按登记注册统计类别(2023 年起),sector 三大门类(2023 年起) |
| item_code | 主体代码,查询请用代码 |
| item_name | 主体名称,国家统计局口径,如"国有工业企业""大型工业企业" |
| indicator_code | 指标代码,查询请用代码 |
| indicator_name | 指标名称,如"利润总额""资产总计" |
| unit | value 的计量单位,每个指标固定一个:亿元、个、万人 |
| basis | value 的口径:year_end 为年末存量,如企业单位数、资产总计、负债合计;full_year 为全年累计的流量,如利润总额、营业收入 |
| value | 全年或年末的值,口径见 basis,单位见 unit |
| item_group | item_code | 名称 |
|---|---|---|
| total | total | 规模以上工业企业 |
| size | large | 大型工业企业 |
| size | medium | 中型工业企业 |
| size | small | 小型工业企业 |
| light_heavy | light_industry | 轻工业企业 |
| light_heavy | heavy_industry | 重工业企业 |
| registration | domestic | 内资工业企业 |
| registration | state_owned | 国有工业企业 |
| registration | collective | 集体工业企业 |
| registration | cooperative | 股份合作工业企业 |
| registration | joint_operation | 联营工业企业 |
| registration | state_joint_operation | 国有联营工业企业 |
| registration | collective_joint_operation | 集体联营工业企业 |
| registration | state_collective_joint_operation | 国有与集体联营工业企业 |
| registration | other_joint_operation | 其他联营工业企业 |
| registration | limited_liability | 有限责任公司工业企业 |
| registration | state_sole_proprietorship | 国有独资公司工业企业 |
| registration | other_limited_liability | 其他有限责任公司工业企业 |
| registration | joint_stock | 股份有限公司工业企业 |
| registration | private | 私营工业企业 |
| registration | private_sole_proprietorship | 私营独资工业企业 |
| registration | private_partnership | 私营合伙工业企业 |
| registration | private_limited_liability | 私营有限责任公司工业企业 |
| registration | private_joint_stock | 私营股份有限公司工业企业 |
| registration | other | 其他工业企业 |
| registration | hmt_invested | 港、澳、台商投资工业企业 |
| registration | hmt_equity_joint_venture | 合资经营(港或澳、台资)工业企业 |
| registration | hmt_contractual_joint_venture | 合作经营(港或澳、台资)工业企业 |
| registration | hmt_sole_proprietorship | 港澳台商独资经营工业企业 |
| registration | hmt_joint_stock | 港澳台商投资股份有限公司工业企业 |
| registration | hmt_other | 其他港澳台商投资工业企业 |
| registration | foreign_invested | 外商投资工业企业 |
| registration | sino_foreign_equity_joint_venture | 中外合资经营工业企业 |
| registration | sino_foreign_contractual_joint_venture | 中外合作经营工业企业 |
| registration | foreign_sole_proprietorship | 外资工业企业 |
| registration | foreign_joint_stock | 外商投资股份有限公司工业企业 |
| registration | foreign_other | 其他外商投资工业企业 |
| registration_2023 | domestic_2023 | 内资工业企业 |
| registration_2023 | limited_liability_2023 | 有限责任公司工业企业 |
| registration_2023 | joint_stock_2023 | 股份有限公司工业企业 |
| registration_2023 | non_corporate_legal_person_2023 | 非公司企业法人工业企业 |
| registration_2023 | partnership_2023 | 合伙工业企业 |
| registration_2023 | individual_sole_proprietorship_2023 | 个人独资工业企业 |
| registration_2023 | other_domestic_2023 | 其他内资工业企业 |
| registration_2023 | hmt_invested_2023 | 港澳台投资工业企业 |
| registration_2023 | hmt_limited_liability_2023 | 港澳台投资有限责任公司工业企业 |
| registration_2023 | hmt_joint_stock_2023 | 港澳台投资股份有限公司工业企业 |
| registration_2023 | hmt_partnership_2023 | 港澳台投资合伙工业企业 |
| registration_2023 | hmt_other_2023 | 其他港澳台投资工业企业 |
| registration_2023 | foreign_invested_2023 | 外商投资工业企业 |
| registration_2023 | foreign_limited_liability_2023 | 外商投资有限责任公司工业企业 |
| registration_2023 | foreign_joint_stock_2023 | 外商投资股份有限公司工业企业 |
| registration_2023 | foreign_partnership_2023 | 外商投资合伙工业企业 |
| registration_2023 | foreign_other_2023 | 其他外商投资工业企业 |
| registration_2023 | other_category_2023 | 其他统计类别工业企业 |
| sector | mining | 采矿业 |
| sector | manufacturing | 制造业 |
| sector | utilities | 电力、热力、燃气及水生产和供应业 |
大型、中型、小型两个年份区间共用代码。2023 年起统计局改用新的登记注册统计类别,与 2022 年前同名的类别(如内资、有限责任公司)范围是否一致没有说明,所以代码加 _2023 后缀,不与 2022 年前连成一条序列。
| indicator_code | 名称 | unit | 口径 |
|---|---|---|---|
| enterprise_count | 企业单位数 | 个 | 年末存量 |
| loss_enterprise_count | 亏损企业单位数 | 个 | 年末存量 |
| paid_in_capital | 实收资本 | 亿元 | 年末存量 |
| state_capital | 国家资本金(国家资本) | 亿元 | 年末存量 |
| collective_capital | 集体资本金(集体资本) | 亿元 | 年末存量 |
| legal_person_capital | 法人资本金(法人资本) | 亿元 | 年末存量 |
| individual_capital | 个人资本金(个人资本) | 亿元 | 年末存量 |
| hmt_capital | 港澳台资本金(港澳台资本) | 亿元 | 年末存量 |
| foreign_capital | 外商资本金(外商资本) | 亿元 | 年末存量 |
| current_assets | 流动资产合计 | 亿元 | 年末存量 |
| accounts_receivable_net | 应收账款净额 | 亿元 | 年末存量 |
| accounts_receivable | 应收账款 | 亿元 | 年末存量 |
| inventory | 存货 | 亿元 | 年末存量 |
| finished_goods_inventory | 产成品 | 亿元 | 年末存量 |
| fixed_assets_total | 固定资产合计 | 亿元 | 年末存量 |
| fixed_assets_net | 固定资产净额 | 亿元 | 年末存量 |
| fixed_assets_original_value | 固定资产原价合计(固定资产原价) | 亿元 | 年末存量 |
| accumulated_depreciation | 累计折旧 | 亿元 | 年末存量 |
| total_assets | 资产总计 | 亿元 | 年末存量 |
| current_liabilities | 流动负债合计 | 亿元 | 年末存量 |
| accounts_payable | 应付账款 | 亿元 | 年末存量 |
| total_liabilities | 负债合计 | 亿元 | 年末存量 |
| owners_equity | 所有者权益合计 | 亿元 | 年末存量 |
| main_business_revenue | 主营业务收入 | 亿元 | 全年累计 |
| main_business_cost | 主营业务成本 | 亿元 | 全年累计 |
| operating_revenue | 营业收入 | 亿元 | 全年累计 |
| operating_cost | 营业成本 | 亿元 | 全年累计 |
| selling_expense | 销售费用 | 亿元 | 全年累计 |
| main_business_tax_surcharge | 主营业务税金及附加 | 亿元 | 全年累计 |
| administrative_expense | 管理费用 | 亿元 | 全年累计 |
| financial_expense | 财务费用 | 亿元 | 全年累计 |
| interest_expense | 利息支出 | 亿元 | 全年累计 |
| interest_charge | 利息费用 | 亿元 | 全年累计 |
| investment_income | 投资收益 | 亿元 | 全年累计 |
| operating_profit | 营业利润 | 亿元 | 全年累计 |
| total_profit | 利润总额 | 亿元 | 全年累计 |
| loss_enterprise_loss | 亏损企业亏损总额(亏损企业亏损额) | 亿元 | 全年累计 |
| income_tax_payable | 应交所得税 | 亿元 | 全年累计 |
| vat_payable | 本年应交增值税 | 亿元 | 全年累计 |
| industrial_sales_output_value | 工业销售产值(现价) | 亿元 | 全年累计 |
| export_delivery_value | 出口交货值 | 亿元 | 全年累计 |
| average_employees | 平均用工人数 | 万人 | 全年累计 |
2022 年前和 2023 年起的指标名称有细微差别的(如"国家资本金"和"国家资本")共用一个代码;会计科目范围不同的(如"应收账款净额"和"应收账款"、"主营业务收入"和"营业收入")分开记。 各指标的起止年份不同(见上文数据简介),同一年不是所有指标都有;2000 年起才有各类资本金分项,2023 年起才有平均用工人数、营业收入等新口径指标。
item_code 和 indicator_code 过滤,再按需要透视。basis 为 year_end 的是年末存量,full_year 的是全年累计,两者不能直接相除;比率要自己按口径计算。date 过滤可以只取回测当天已经公布的数据,见下面的示例。from bigquant import dai
# 全部规模以上工业企业各年的利润总额, 取各年份的最新版本sql = """SELECT report_date, value, unitFROM cn_macro_industrial_enterprise_yearlyWHERE item_code = 'total' AND indicator_code = 'total_profit'QUALIFY row_number() OVER (PARTITION BY report_date, item_code, indicator_code ORDER BY date DESC) = 1ORDER BY report_date"""国家统计局的数据接口不提供公布时间,公告表 cn_macro_announcement 里也没有年度企业经济指标的公告,所以 date 是本表自己记的版本日期。
统计局发布各指标年度数据的实际时间没有逐个核实,date 取偏晚的估算值,不会引入未来信息:
date 取抓取当天与"报告期末日后 365 天"中较早的一个,所以刚发布的数据 date 就是抓到的当天;已入库年份的数值发生变化即视为修订,新增一行,date 记抓取当天,更早年份的修订通过不定期的全量历史构建补入。上线前的历史只保留一个版本,取值是上线时的最新值。
数据源页面的更新记录里,增量和历史写入的说明是一句话:[增量] 或 [历史] 开头,写明本次写入的报告期范围和行数。
修复用于改正已入库的数据:只处理指定日期所在的年份,被改正的行沿用原来的公布日期 date,按主键覆盖旧值,不新增版本;更新记录里的说明是调用方传入的 update_note 原文。
仓库里没有旧的年度企业经济指标表,本表是新增数据。
SELECT date, report_date, item_group, item_code, item_name, indicator_code, indicator_nameFROM cn_macro_industrial_enterprise_yearlyWHERE date >= '2026-11-03'ORDER BY dateLIMIT 100