...
|
...
|
@@ -17,6 +17,12 @@ func (service OrderInfoService) GetOrderInfoWithBonus(orderBaseId int64, company |
|
|
if err != nil {
|
|
|
return nil, lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
if err = transactionContext.StartTransaction(); err != nil {
|
|
|
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
defer func() {
|
|
|
transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
var (
|
|
|
orderBaseRepository domain.OrderBaseRepository
|
|
|
order *domain.OrderBase
|
...
|
...
|
@@ -33,6 +39,7 @@ func (service OrderInfoService) GetOrderInfoWithBonus(orderBaseId int64, company |
|
|
if err != nil {
|
|
|
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("获取订单数据失败:%s", err))
|
|
|
}
|
|
|
_ = transactionContext.CommitTransaction()
|
|
|
var (
|
|
|
returnData interface{}
|
|
|
)
|
...
|
...
|
|