debug(accounting): add type logging for billing rows

This commit is contained in:
yumoqing 2026-07-17 14:41:22 +08:00
parent 91609f3606
commit 0e750b6d31

View File

@ -27,6 +27,7 @@ where a.orgid = ${orgid}$
and d.acc_date >= ${start_date}$
and d.acc_date <= ${end_date}$"""
rows = await sor.sqlExe(sql, ns)
debug(f'billing rows type={type(rows).__name__}, is_list={isinstance(rows, list)}, len={len(rows) if isinstance(rows, list) else "N/A"}')
# 统计数据 — 独立 ns 避免被 sqlor 修改
stats_ns = {