fix: 仅对储存历史CSV使用GBK

This commit is contained in:
2026-08-07 16:37:20 +08:00
parent 8a3c273a04
commit 8e96b3a24b
5 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
- Only `Sheet0` is converted and merged. The `指标(计数器)` sheet is metadata and is not included in the summary.
- NR CGI is derived as `{gNBplmn}-{gNBId}-{cellId}`.
- 4G CGI is derived as `460-00-{eNodeBID}-{小区ID}`, using the equivalent node and cell column names in each source schema.
- All output CSV files use GBK without a UTF-8 BOM. Non-breaking spaces are normalized to ordinary spaces; other unsupported characters remain encoding errors. `manifest.json` remains UTF-8 JSON.
- Only history CSV files uploaded to Metrix Storage use GBK without a UTF-8 BOM. Local converted and summary CSV files remain UTF-8 with BOM; `manifest.json` remains UTF-8 JSON.
- Source files are read-only. The script writes only below its configured output directory.
- MySQL is the scheduled-run output. The table uses one `metric_time DATETIME` column containing the source KPI start time.
- A successful run transactionally refreshes the selected hour and deletes rows for all other hours. A selected hour older than the newest database hour is rejected to prevent data rollback.