修复因无新增客户导致NGV数据新增异常

This commit is contained in:
2026-01-12 16:27:15 +08:00
parent 923c035fd5
commit 1ef81def0f
9 changed files with 507 additions and 78 deletions
+4 -4
View File
@@ -421,8 +421,8 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2026-01-06T08:21:20.943512600Z",
"start_time": "2026-01-06T08:21:19.361422Z"
"end_time": "2026-01-06T08:49:37.955377100Z",
"start_time": "2026-01-06T08:49:37.747330400Z"
}
},
"cell_type": "code",
@@ -454,7 +454,7 @@
"\n",
" # 使用DELETE删除ID大于等于127821的数据\n",
" # cursor.execute(f\"DELETE FROM {table_name} WHERE id >= {min_id_to_delete}\")\n",
" cursor.execute(f\"DELETE FROM GP_monthly_renewal_rate_new WHERE 月分区(仅用于存储每月最后一天截至数据) = '202512';\")\n",
" cursor.execute(f\"DELETE FROM GP_annual_renewal_rate_new WHERE 月分区(仅用于存储每月最后一天截至数据) = '202512';\")\n",
"\n",
" connection.commit()\n",
"\n",
@@ -478,7 +478,7 @@
]
}
],
"execution_count": 2
"execution_count": 7
},
{
"metadata": {},