反算京西价终极

This commit is contained in:
苏尹岚
2020-03-19 10:11:49 +08:00
parent 4452a76e30
commit 43a45df6fe

View File

@@ -3720,7 +3720,7 @@ func RefreshJxPriceByVendor(ctx *jxcontext.Context, jdStoreSkus []*JdStoreSkus,
} }
jxPrice := jxutils.CaculateJxPriceByPricePack(pricePercentagePack, 0, vendorPrice) jxPrice := jxutils.CaculateJxPriceByPricePack(pricePercentagePack, 0, vendorPrice)
if skus[0].Unit == model.SpecialUnit { 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))
} }
jdMap[v.JdStoreID] = append(jdMap[v.JdStoreID], &JdStoreSkus{ jdMap[v.JdStoreID] = append(jdMap[v.JdStoreID], &JdStoreSkus{
JdSkuID: skus[0].NameID, JdSkuID: skus[0].NameID,