作者 唐旭辉

错误修复

... ... @@ -1008,7 +1008,7 @@ func (service OrderInfoService) UpdateBonusByGoodNumber(orderId int64, goodId in
orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{
TransactionContext: transactionContext.(*transaction.TransactionContext),
})
err = orderBonuSrv.UpdateBounsByGoodNumber(orderId, goodId, adminId, goodNumber, reason)
err = orderBonuSrv.UpdateBounsByGoodNumber(orderId, adminId, goodId, goodNumber, reason)
if err != nil {
return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
}
... ... @@ -1043,7 +1043,7 @@ func (service OrderInfoService) UpdateBonusByPartnerBonusPercent(orderId int64,
orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{
TransactionContext: transactionContext.(*transaction.TransactionContext),
})
err = orderBonuSrv.UpdateBounsByPartnerBonusPercent(orderId, goodId, adminId, percent, reason)
err = orderBonuSrv.UpdateBounsByPartnerBonusPercent(orderId, adminId, goodId, percent, reason)
if err != nil {
return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
}
... ...
... ... @@ -60,7 +60,8 @@ func (repository OrderLogRepository) Find(queryOptions domain.OrderLogFindQuery)
if queryOptions.OrderId > 0 {
query = query.Where("order_id=?", queryOptions.OrderId)
}
query.Limit(1000)
query = query.Order("order_log.id")
query = query.Limit(1000)
err = query.Select()
if err != nil {
return nil, err
... ...