反算京西价bug,银豹平台,没玩刷新物料订单

This commit is contained in:
苏尹岚
2020-03-19 09:55:59 +08:00
parent 818cf48d5d
commit b402031860
5 changed files with 82 additions and 0 deletions

View File

@@ -3649,10 +3649,12 @@ func RefreshJxPriceByVendor(ctx *jxcontext.Context, jdStoreSkus []*JdStoreSkus,
} else {
vendorPrice = v.Price
}
fmt.Println("RefreshJxPriceByVendor1", vendorPrice)
jxPrice := jxutils.CaculateJxPriceByPricePack(pricePercentagePack, 0, vendorPrice)
if skus[0].Unit == model.SpecialUnit {
jxPrice = jxPrice * int(utils.Float64TwoInt64(utils.Int2Float64(model.SpecialSpecQuality)/specQuality))
}
fmt.Println("RefreshJxPriceByVendor2", jxPrice)
jdMap[store.ID] = append(jdMap[store.ID], &JdStoreSkus{
JdSkuID: skus[0].NameID,
Price: jxPrice,