修改
This commit is contained in:
parent
fe599344d8
commit
d18adaac6c
@ -1,7 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jinzhu/copier"
|
|
||||||
"micro-bundle/internal/model"
|
"micro-bundle/internal/model"
|
||||||
"micro-bundle/pb/bundle"
|
"micro-bundle/pb/bundle"
|
||||||
"micro-bundle/pkg/app"
|
"micro-bundle/pkg/app"
|
||||||
@ -158,6 +157,26 @@ func OrderRecordDetail(req *bundle.OrderRecordsDetailRequest) (res *bundle.Order
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return res, commonErr.ReturnError(err, msg.ErrorGetOrderInfo, "获取订单信息失败: ")
|
return res, commonErr.ReturnError(err, msg.ErrorGetOrderInfo, "获取订单信息失败: ")
|
||||||
}
|
}
|
||||||
_ = copier.CopyWithOption(&res, orderRecord, copier.Option{DeepCopy: true})
|
//_ = copier.CopyWithOption(&res, orderRecord, copier.Option{DeepCopy: true})
|
||||||
|
|
||||||
|
res = &bundle.OrderRecord{
|
||||||
|
Uuid: orderRecord.UUID,
|
||||||
|
OrderNo: orderRecord.OrderNo,
|
||||||
|
BundleUuid: orderRecord.BundleUUID,
|
||||||
|
BundleName: orderRecord.BundleName,
|
||||||
|
CustomerID: orderRecord.CustomerID,
|
||||||
|
CustomerNum: orderRecord.CustomerNum,
|
||||||
|
CustomerName: orderRecord.CustomerName,
|
||||||
|
Amount: orderRecord.Amount,
|
||||||
|
AmountType: orderRecord.AmountType,
|
||||||
|
SignContract: orderRecord.SignContract,
|
||||||
|
Signature: orderRecord.Signature,
|
||||||
|
SignedTime: orderRecord.SignedTime,
|
||||||
|
PayType: orderRecord.PayType,
|
||||||
|
PayTime: orderRecord.PayTime,
|
||||||
|
CheckoutSessionId: orderRecord.CheckoutSessionId,
|
||||||
|
CheckoutSessionUrl: orderRecord.CheckoutSessionUrl,
|
||||||
|
Status: orderRecord.Status,
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user