From b69f6701dc2e4e60e4cd8625bae4c3ecc456f04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 2 Nov 2020 09:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=AE=E5=89=8D=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 340eb7b5a..4d4a92ec2 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -1792,7 +1792,10 @@ func AdjustJdsOrderSimple(ctx *jxcontext.Context, vendorOrderID string, skuID in } else { _, err = dao.DeleteEntity(db, orderSku) } - + order.AdjustCount++ + order.ActualPayPrice = order.ActualPayPrice - orderSku.SalePrice + order.TotalShopMoney = int64(float64(order.ActualPayPrice) * jdshopapi.JdsPayPercentage) + dao.UpdateEntity(db, order, "AdjustCount", "TotalShopMoney") return err }