From d0df671091f3f3773efc162a1995647a100ab7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 28 Jun 2020 17:53:16 +0800 Subject: [PATCH] =?UTF-8?q?shopprice=E4=B8=BA0=E7=9A=84=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E6=8C=89saleprice*0.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index c1ed054de..f59c51459 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -381,6 +381,9 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao. } } else { v.ShopPrice = int64(skuBindInfo.Price) + if v.ShopPrice == 0 { + v.ShopPrice = v.SalePrice * 70 / 100 + } } v.Weight = skuBindInfo.Weight // 以本地信息中的WEIGHT为准 //饿鲜达的订单做一下处理