From ec52d564cc869a60b1b45467bf551f3aa87ce137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 18 Sep 2020 16:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A3=E7=82=B9=E5=87=8F=E9=85=8D=E9=80=81?= =?UTF-8?q?=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }