改 相对路径 完成客户端

This commit is contained in:
Neo
2026-01-27 22:14:01 +08:00
parent 04c064793a
commit 9f8976e75a
292 changed files with 307062 additions and 678 deletions

View File

@@ -4,8 +4,8 @@ import re
from pathlib import Path
from collections import defaultdict
SQL_PATH = Path(r"C:\dev\LLTQ\ETL\feiqiu-ETL\etl_billiards\database\schema_ODS_doc.sql")
DOC_DIR = Path(r"C:\dev\LLTQ\export\test-json-doc")
SQL_PATH = Path("etl_billiards") / "database" / "schema_ODS_doc.sql"
DOC_DIR = Path("etl_billiards") / "export" / "test-json-doc"
TABLE_CN = {
"member_profiles": "会员档案/会员账户信息",
@@ -449,7 +449,7 @@ def build_comment_block(table: str, columns, analysis_text: str, records):
table_comment = (
f"ODS 原始明细表:{table_cn}"
f"来源:C:/dev/LLTQ/export/test-json-doc/{table}.json分析{table}-Analysis.md。"
f"来源:etl_billiards/export/test-json-doc/{table}.json分析{table}-Analysis.md。"
f"字段以导出原样为主ETL 补充 source_file/source_endpoint/fetched_at并保留 payload 为原始记录快照。"
)
@@ -481,7 +481,7 @@ def build_comment_block(table: str, columns, analysis_text: str, records):
if col == "source_file":
ex = f"{table}.json"
elif col == "source_endpoint":
ex = f"C:/dev/LLTQ/export/test-json-doc/{table}.json"
ex = f"etl_billiards/export/test-json-doc/{table}.json"
else:
ex = "2025-11-10T00:00:00+08:00"
elif col == "payload":