From 4452a76e30a78dd32b940f16791e728b6ae36eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 19 Mar 2020 10:10:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E7=AE=97=E4=BA=AC=E8=A5=BF=E4=BB=B7?= =?UTF-8?q?=E7=BB=88=E6=9E=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 5 +---- business/jxutils/jxutils_cms.go | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index d34ef507d..e9fddb699 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -3649,13 +3649,10 @@ func RefreshJxPriceByVendor(ctx *jxcontext.Context, jdStoreSkus []*JdStoreSkus, } else { vendorPrice = v.Price } - fmt.Println("RefreshJxPriceByVendor1", vendorPrice) jxPrice := jxutils.CaculateJxPriceByPricePack(pricePercentagePack, 0, vendorPrice) - fmt.Println("RefreshJxPriceByVendor2", jxPrice) if skus[0].Unit == model.SpecialUnit { - jxPrice = jxPrice * int(utils.Float64TwoInt64(utils.Int2Float64(model.SpecialSpecQuality)/specQuality)) + jxPrice = int(utils.Float64TwoInt64(utils.Int2Float64(jxPrice) * utils.Int2Float64(model.SpecialSpecQuality) / specQuality)) } - fmt.Println("RefreshJxPriceByVendor3", jxPrice) jdMap[store.ID] = append(jdMap[store.ID], &JdStoreSkus{ JdSkuID: skus[0].NameID, Price: jxPrice, diff --git a/business/jxutils/jxutils_cms.go b/business/jxutils/jxutils_cms.go index fc4b1b14e..ebf749df0 100644 --- a/business/jxutils/jxutils_cms.go +++ b/business/jxutils/jxutils_cms.go @@ -342,7 +342,6 @@ func CaculatePriceByPricePack(l model.PricePercentagePack, defPricePercentage, p func CaculateJxPriceByPricePack(l model.PricePercentagePack, defPricePercentage, vendorPrice int) (jxPrice int) { pricePercentage, priceAdd := GetPricePercentageByVendorPrice(l, vendorPrice, defPricePercentage) - fmt.Println("RefreshJxPriceByVendor4", pricePercentage, priceAdd) jxPrice = CaculateSkuPriceFromVendor(vendorPrice, pricePercentage, priceAdd) return jxPrice }