修改
This commit is contained in:
parent
3bb67f4048
commit
b8fff627f8
@ -103,7 +103,29 @@ func OrderRecordsList(req *bundle.OrderRecordsRequest) (res *bundle.OrderRecords
|
|||||||
return res, commonErr.ReturnError(err, msg.ErrorGetOrderList, "获取订单信息失败: ")
|
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
|
var total int64
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user