From 4ef0808004bdce7456fb749ffa88480d1ce40391 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jul 2026 14:44:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(accounting):=20billing.dspy=20=E2=80=94=20r?= =?UTF-8?q?emove=20'page'=20from=20ns=20to=20prevent=20sor.sqlExe=20auto-p?= =?UTF-8?q?aging=20return=20DictObject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/billing.dspy | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/wwwroot/billing.dspy b/wwwroot/billing.dspy index 35f20db..e8dce7f 100644 --- a/wwwroot/billing.dspy +++ b/wwwroot/billing.dspy @@ -12,8 +12,6 @@ ns = { 'orgid': userorgid, 'start_date': start_date, 'end_date': end_date, - 'page': int(params_kw.get('page', 1)), - 'rows': int(params_kw.get('rows', 30)), 'sort': 'acc_date desc' } @@ -27,11 +25,7 @@ where a.orgid = ${orgid}$ and d.acc_date >= ${start_date}$ and d.acc_date <= ${end_date}$""" rows = await sor.sqlExe(sql, ns) - if not isinstance(rows, list): - rows = list(rows) if rows else [] - debug(f'billing rows type={type(rows).__name__}, len={len(rows)}') - - # 统计数据 — 独立 ns 避免被 sqlor 修改 + stats_ns = { 'orgid': userorgid, 'start_date': start_date,