From b8fff627f8a67afddb30236a7be92efb0fc597e6 Mon Sep 17 00:00:00 2001 From: jhc Date: Sat, 22 Feb 2025 19:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/orderRecordsDao.go | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/internal/dao/orderRecordsDao.go b/internal/dao/orderRecordsDao.go index 6b02f1c..4f39a54 100644 --- a/internal/dao/orderRecordsDao.go +++ b/internal/dao/orderRecordsDao.go @@ -103,7 +103,29 @@ func OrderRecordsList(req *bundle.OrderRecordsRequest) (res *bundle.OrderRecords return res, commonErr.ReturnError(err, msg.ErrorGetOrderList, "获取订单信息失败: ") } - _ = copier.CopyWithOption(&res.OrderRecords, records, copier.Option{DeepCopy: true}) + //_ = copier.CopyWithOption(&res.OrderRecords, records, copier.Option{DeepCopy: true}) + + for _, record := range records { + res.OrderRecords = append(res.OrderRecords, &bundle.OrderRecord{ + Uuid: record.UUID, + OrderNo: record.OrderNo, + BundleUuid: record.BundleUUID, + BundleName: record.BundleName, + CustomerID: record.CustomerID, + CustomerNum: record.CustomerNum, + CustomerName: record.CustomerName, + Amount: record.Amount, + AmountType: record.AmountType, + SignContract: record.SignContract, + Signature: record.Signature, + SignedTime: record.SignedTime, + PayType: record.PayType, + PayTime: record.PayTime, + CheckoutSessionId: record.CheckoutSessionId, + CheckoutSessionUrl: record.CheckoutSessionUrl, + Status: record.Status, + }) + } var total int64