From f9ccdc1663bc98b1e068ab47c58887e3b482bc6d Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 11 十一月 2026 20:07:28 +0800
Subject: [PATCH] feat(H202): 新增货运车辆拥有情况导入与查看
---
deploy-templates/db/init.sql | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/deploy-templates/db/init.sql b/deploy-templates/db/init.sql
index 6349e47..b4c7983 100644
--- a/deploy-templates/db/init.sql
+++ b/deploy-templates/db/init.sql
@@ -135,6 +135,33 @@
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='浜や紒缁烪203-2琛╛閬撹矾璐х墿杩愯緭鏈堝害鐢熶骇鎯呭喌';
+-- H202 highway freight operating vehicle ownership matrix.
+DROP TABLE IF EXISTS h202_freight_vehicle_ownership;
+CREATE TABLE h202_freight_vehicle_ownership (
+ id BIGINT AUTO_INCREMENT PRIMARY KEY,
+ report_period VARCHAR(20) NOT NULL COMMENT 'Report period yyyy-MM',
+ region_name VARCHAR(50) NOT NULL COMMENT 'Hubei province or prefecture-level region',
+ report_date DATE NOT NULL COMMENT 'Report date from cell L3',
+ item_code VARCHAR(10) NOT NULL COMMENT 'H202 indicator code 01-93',
+ item_name VARCHAR(200) NOT NULL COMMENT 'Indicator name inherited from the matrix row',
+ unit VARCHAR(20) NULL COMMENT 'Measurement unit',
+ total_value DECIMAL(30,15) NULL,
+ individual_value DECIMAL(30,15) NULL,
+ large_value DECIMAL(30,15) NULL,
+ large_heavy_value DECIMAL(30,15) NULL,
+ large_heavy_individual_value DECIMAL(30,15) NULL,
+ large_individual_value DECIMAL(30,15) NULL,
+ medium_value DECIMAL(30,15) NULL,
+ medium_individual_value DECIMAL(30,15) NULL,
+ small_value DECIMAL(30,15) NULL,
+ small_individual_value DECIMAL(30,15) NULL,
+ source_file_name VARCHAR(255) NULL COMMENT 'Source workbook file name',
+ import_batch_id BIGINT NULL COMMENT 'Import batch id',
+ created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ UNIQUE KEY uk_h202_period_region_item (report_period, region_name, item_code),
+ KEY idx_h202_period_region (report_period, region_name)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='H202 highway freight operating vehicle ownership';
+
-- 杩愭斂杞﹁締鏁版嵁
DROP TABLE IF EXISTS transport_auth_vehicle;
CREATE TABLE transport_auth_vehicle (
--
Gitblit v1.9.1