From bd7f551f231250c012f5559251c5170124527bc3 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Fri, 26 Jun 2026 08:17:34 +0800 Subject: [PATCH] refactor: Update CellData.sql to modify bandwidth handling and adjust Configure.json for user credentials and metadata settings --- CellData.sql | 18 +++--------------- Configure.json | 15 +++++++++------ 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/CellData.sql b/CellData.sql index a8e7480..793f6ea 100644 --- a/CellData.sql +++ b/CellData.sql @@ -1,15 +1,3 @@ -SELECT * FROM `cellinfo`; -DROP TABLE IF EXISTS `4G`; -DROP TABLE IF EXISTS `5G`; -DROP TABLE IF EXISTS `4G_Date`; -DROP TABLE IF EXISTS `4G_MAX`; -DROP TABLE IF EXISTS `CCE_MAX`; -DROP TABLE IF EXISTS `ULPRB_MAX`; -DROP TABLE IF EXISTS `DLPRB_MAX`; -DROP TABLE IF EXISTS `4G_MAX_IDX`; -DROP TABLE IF EXISTS `CCE_MAX_IDX`; -DROP TABLE IF EXISTS `ULPRB_MAX_IDX`; -DROP TABLE IF EXISTS `DLPRB_MAX_IDX`; -DROP TABLE IF EXISTS `日流量`; -DROP TABLE IF EXISTS `4G日均流量`; -DROP TABLE IF EXISTS `4G_结果表`; +UPDATE cellinfo SET `带宽` = IF(`带宽` IS NULL OR `带宽` = '', '0M', CONCAT(REPLACE(UPPER(`带宽`),'M',''), 'M')); + +# 后续实现通过cellinfo表处理为扇区表,支撑扇区容量分析 \ No newline at end of file diff --git a/Configure.json b/Configure.json index 8098e8f..ca59d44 100644 --- a/Configure.json +++ b/Configure.json @@ -1,6 +1,7 @@ { - "Update": "2026/06/25 05:17:26", - "SourceType": "sftp", + "Update": "2026/06/26 05:38:36", + "MetrixEnabled": false, + "SourceType": "external", "WarehouseType": "mysql", "MySQL_DBInfo": { "host": "127.0.0.1", @@ -191,7 +192,7 @@ "protocol": "sftp", "host": "127.0.0.1", "port": 2022, - "user": "nixevol", + "user": "user1", "remote_dir": "/CapacityReportData", "passive": true, "timeout": 30, @@ -202,7 +203,7 @@ "expected_directories": [], "week_offset": 0 }, - "passwd": "242520" + "passwd": "123456" }, "CellData": { "remote_data": { @@ -210,7 +211,7 @@ "protocol": "sftp", "host": "127.0.0.1", "port": 2022, - "user": "nixevol", + "user": "user1", "remote_dir": "/", "passive": true, "timeout": 30, @@ -221,7 +222,7 @@ "expected_directories": [], "week_offset": 0 }, - "passwd": "242520" + "passwd": "123456" }, "mysql": { "host": "127.0.0.1", @@ -234,6 +235,8 @@ "/网优日常优化数据文档/日常性能报表/{maxyear}年/300表" ], "year_dir_regex": "(?P\\d{4})年", + "month_dir_regex": "(?P\\d{1,2})月", + "day_dir_regex": "(?P\\d{1,2})日", "file_name_regex": "^Result_300_.*\\.zip$", "file_time_regex": "(?P\\d{14})(?=\\.zip$)", "mapping": {