diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 5f23772b6..d34ef507d 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -3651,10 +3651,11 @@ func RefreshJxPriceByVendor(ctx *jxcontext.Context, jdStoreSkus []*JdStoreSkus, } 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)) } - fmt.Println("RefreshJxPriceByVendor2", jxPrice) + 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 ebf749df0..fc4b1b14e 100644 --- a/business/jxutils/jxutils_cms.go +++ b/business/jxutils/jxutils_cms.go @@ -342,6 +342,7 @@ 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 }