Commit b5e3a6f4 by 杨树贤

兼容供应商

parent 34f6412c
Showing with 15 additions and 5 deletions
......@@ -408,11 +408,21 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
sku = priceService.TransformSpecialSupplierPrice(sku)
var showPriceRatioList []model.PriceRatio
for key, price := range sku.LadderPrice {
originalPrice = append(originalPrice, model.OriginPrice{
PriceUs: price.PriceUs,
Purchases: price.Purchases,
PriceCn: price.PriceCn,
})
//MRO是有人民币得代购
if sku.SupplierId == 1688 {
originalPrice = append(originalPrice, model.OriginPrice{
PriceUs: price.PriceUs,
Purchases: price.Purchases,
PriceCn: price.PriceCn,
})
} else {
originalPrice = append(originalPrice, model.OriginPrice{
PriceUs: price.PriceUs,
Purchases: price.Purchases,
})
}
if price.Purchases == 0 {
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment