feat(product): 聚水潭销售主题分析按日采集工作流

collect_erp_sales_theme_daily.py 采集 bi.erp321.com「报表→销售主题分析→按日统计」,
异步导出 + OSS 直连兜底,固定品牌+店铺口径,写 erp_sales_theme_daily_metrics
(db 层建表与 upsert 同步,每日一行幂等覆盖)。注册 product.erp_sales_theme_daily.collect
手动命令,复用 erp-account 登录绑定新增 CDP 22167;目录/集成计数 60→61,
新脚本纳入 CI 聚焦 lint 清单。
This commit is contained in:
wangyunlong committed 2026-10-14 18:29:15 +08:00
1 parent 97a486e97d
commit 9a91ce80e4
9 files changed
+1229 -6

No files matched your search

+11
View File
@@ -465,6 +465,17 @@
"{business_date}"
]
},
{
"id": "product.erp_sales_theme_daily.collect",
"module": "product_commerce",
"entry": "collect_erp_sales_theme_daily.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--execute"
]
},
{
"id": "product.hk_anpei_public_inventory.refresh",
"module": "product_commerce",
+13
View File
@@ -168,6 +168,7 @@
"product_commerce:collect_erp_yesterday_metrics.py",
"product_commerce:erp_login_product_analysis.py",
"product.erp_all_shop_daily",
"product.erp_sales_theme_daily.collect",
"product.sales_sheet.sync",
"supply_chain:orchestrator/scripts/ProductReplenishment.py",
"supply_chain:orchestrator/scripts/PurchaseConfirmation.py",
@@ -1346,6 +1347,18 @@
"erp321.com"
]
},
"product.erp_sales_theme_daily.collect": {
"script_id": "product_commerce:collect_erp_sales_theme_daily.py",
"state_key": "product_commerce:collect_erp_sales_theme_daily.py",
"aliases": [
"product_commerce:collect_erp_sales_theme_daily.py"
],
"cdp_port": 22167,
"login_mode": "C",
"required_cookie_domains": [
"erp321.com"
]
},
"product.hk_anpei_public_inventory.refresh": {
"script_id": "product_commerce:public_sku_inventory_sheet.py",
"state_key": "product_commerce:public_sku_inventory_sheet.py",