反算京西价终极
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user