diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index e3d5a191b..a196f8c15 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -1776,6 +1776,10 @@ func UpdateWaybillDesiredFee(ctx *jxcontext.Context, vendorOrderID string, desir } else { bill.DesiredFee = int64(desiredFee) _, err = dao.UpdateEntity(db, bill, "DesiredFee") + if order.EarningType == model.EarningTypePoints { + order.NewEarningPrice = order.NewEarningPrice - int64(desiredFee) + _, err = dao.UpdateEntity(db, order, "NewEarningPrice") + } } return err }