作者 唐旭辉

错误修复

@@ -1008,7 +1008,7 @@ func (service OrderInfoService) UpdateBonusByGoodNumber(orderId int64, goodId in @@ -1008,7 +1008,7 @@ func (service OrderInfoService) UpdateBonusByGoodNumber(orderId int64, goodId in
1008 orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{ 1008 orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{
1009 TransactionContext: transactionContext.(*transaction.TransactionContext), 1009 TransactionContext: transactionContext.(*transaction.TransactionContext),
1010 }) 1010 })
1011 - err = orderBonuSrv.UpdateBounsByGoodNumber(orderId, goodId, adminId, goodNumber, reason) 1011 + err = orderBonuSrv.UpdateBounsByGoodNumber(orderId, adminId, goodId, goodNumber, reason)
1012 if err != nil { 1012 if err != nil {
1013 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error()) 1013 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
1014 } 1014 }
@@ -1043,7 +1043,7 @@ func (service OrderInfoService) UpdateBonusByPartnerBonusPercent(orderId int64, @@ -1043,7 +1043,7 @@ func (service OrderInfoService) UpdateBonusByPartnerBonusPercent(orderId int64,
1043 orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{ 1043 orderBonuSrv.Subscribe(&subscriber.OrderLogSubscriber{
1044 TransactionContext: transactionContext.(*transaction.TransactionContext), 1044 TransactionContext: transactionContext.(*transaction.TransactionContext),
1045 }) 1045 })
1046 - err = orderBonuSrv.UpdateBounsByPartnerBonusPercent(orderId, goodId, adminId, percent, reason) 1046 + err = orderBonuSrv.UpdateBounsByPartnerBonusPercent(orderId, adminId, goodId, percent, reason)
1047 if err != nil { 1047 if err != nil {
1048 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error()) 1048 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
1049 } 1049 }
@@ -60,7 +60,8 @@ func (repository OrderLogRepository) Find(queryOptions domain.OrderLogFindQuery) @@ -60,7 +60,8 @@ func (repository OrderLogRepository) Find(queryOptions domain.OrderLogFindQuery)
60 if queryOptions.OrderId > 0 { 60 if queryOptions.OrderId > 0 {
61 query = query.Where("order_id=?", queryOptions.OrderId) 61 query = query.Where("order_id=?", queryOptions.OrderId)
62 } 62 }
63 - query.Limit(1000) 63 + query = query.Order("order_log.id")
  64 + query = query.Limit(1000)
64 err = query.Select() 65 err = query.Select()
65 if err != nil { 66 if err != nil {
66 return nil, err 67 return nil, err