From 98ce961272c596468a4cb4b2498a3c70048e4aed Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期四, 24 九月 2026 15:57:31 +0800
Subject: [PATCH] bug修复
---
src/modules/shop/service/transaction.ts | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/modules/shop/service/transaction.ts b/src/modules/shop/service/transaction.ts
index 26639b5..2f342f2 100644
--- a/src/modules/shop/service/transaction.ts
+++ b/src/modules/shop/service/transaction.ts
@@ -19,7 +19,12 @@
/**
* App 绔垎椤碉細杞禒 tab 鍙湅璧犻��/鎺ュ彈锛屾敹鏀� tab 鐪嬪叾浣欑被鍨�
*/
- async page(query: any) {
+ async page(query: any, option?: any, connectionName?: any) {
+ // 绠$悊绔垪琛ㄤ笉甯� tab锛岃蛋閫氱敤鍒嗛〉锛屾绱㈡潯浠剁敱 pageQueryOp 鐢熸晥
+ if (!query?.tab) {
+ return super.page(query, option, connectionName);
+ }
+
const { userId, tab, page = 1, size = 10 } = query || {};
const find = this.recycleTransactionEntity.createQueryBuilder('a');
@@ -41,8 +46,6 @@
find.orderBy('a.createTime', 'DESC');
find.addOrderBy('a.id', 'DESC');
-
- console.log(find)
return this.entityRenderPage(find, { ...query, page, size }, false);
}
--
Gitblit v1.9.1