feat: 将干扰CSV输出改为GBK

This commit is contained in:
2026-08-07 16:00:30 +08:00
parent 0966dc844b
commit 8d681118ea
5 changed files with 19 additions and 7 deletions
+3 -1
View File
@@ -40,7 +40,7 @@ The script never modifies or deletes source storage files. Before downloading so
The database table contains normalized `metric_time DATETIME`, `network_type VARCHAR(16)`, `interference_dbm DECIMAL(10,3)`, nullable `prev_interference_dbm DECIMAL(10,3)`, nullable `longitude` and `latitude`, `azimuth DECIMAL(6,2) NOT NULL DEFAULT 0`, `nearby_count INT NOT NULL DEFAULT 0`, and nullable `prev_nearby_count INT`. A successful transaction replaces the target batch and deletes every other database time, so the table retains only the latest processed group. The previous-period values are read before this replacement transaction.
After the database succeeds, the same nine result columns are uploaded as UTF-8-BOM CSV to:
After the database succeeds, the same eleven result columns are uploaded as GBK CSV to:
```text
/网优日常优化数据文档/(勿删)干扰定时小时指标/干扰历史数据/YYYY-MM-DD/干扰数据处理结果_YYYYMMDDHHMMSS.csv
@@ -48,6 +48,8 @@ After the database succeeds, the same nine result columns are uploaded as UTF-8-
The filename time comes from normalized `metric_time`, never the server clock. If the database already contains the target time but its history CSV is missing or empty, the script exports that time from the database and repairs the history file without reprocessing source data.
All generated CSV files use GBK without a UTF-8 BOM, including the seven converted source files, the merged summary, and the uploaded history file. `manifest.json` remains UTF-8 JSON.
CGI is generated with fixed rules:
- NR (`5G干扰监控`, `700M干扰监控`): `{gNBplmn}-{gNBId}-{cellId}`.