From 21b66cc4821eb8ad6929d786cb081f1f7403c73c Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 29 Aug 2019 17:31:21 +0800 Subject: [PATCH] =?UTF-8?q?-=20updateOrderSkuOtherInfo=E4=B8=AD=E5=9B=BA?= =?UTF-8?q?=E5=8C=96=E8=AE=A2=E5=8D=95=E5=95=86=E5=93=81=E7=9A=84EarningPr?= =?UTF-8?q?ice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 42014d9c7..582078e02 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -320,18 +320,10 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao. if skuBindInfo.Price == 0 { globals.SugarLogger.Infof("updateOrderSkuOtherInfo [运营%s]%s订单sku门店价格为零(一般原因为没有门店价格信息),orderID:%s, StoreID:%d, SkuID:%d, sku:%v", opNumStr, model.VendorChineseNames[order.VendorID], order.VendorOrderID, jxStoreID, v.JxSkuID, v) } - // v.EarningPrice = jxutils.CaculateSkuEarningPrice(v.ShopPrice, v.SalePrice, storePayPercentage) + v.EarningPrice = jxutils.CaculateSkuEarningPrice(v.ShopPrice, v.SalePrice, storePayPercentage) } } - // if skuPriceMap != nil { - // if skuID := jxutils.GetSkuIDFromOrderSku(v); skuID > 0 /*&& v.StoreSubName != ""*/ { - // index := dao.GenSkuPriceMapKey(jxStoreID, v.SkuID) - // if skuPriceMap[index] != nil && skuPriceMap[index].EarningPrice > 0 { - // v.EarningPrice = int64(skuPriceMap[index].EarningPrice) - // } - // } - // } else if actStoreSkuMap != nil { if skuID := jxutils.GetSkuIDFromOrderSku(v); skuID > 0 { if actStoreSku := actStoreSkuMap.GetActStoreSku(jxStoreID, skuID, order.VendorID); actStoreSku != nil {