Commit b5e3a6f4 by 杨树贤

兼容供应商

parent 34f6412c
Showing with 10 additions and 0 deletions
...@@ -408,11 +408,21 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku { ...@@ -408,11 +408,21 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
sku = priceService.TransformSpecialSupplierPrice(sku) sku = priceService.TransformSpecialSupplierPrice(sku)
var showPriceRatioList []model.PriceRatio var showPriceRatioList []model.PriceRatio
for key, price := range sku.LadderPrice { for key, price := range sku.LadderPrice {
//MRO是有人民币得代购
if sku.SupplierId == 1688 {
originalPrice = append(originalPrice, model.OriginPrice{ originalPrice = append(originalPrice, model.OriginPrice{
PriceUs: price.PriceUs, PriceUs: price.PriceUs,
Purchases: price.Purchases, Purchases: price.Purchases,
PriceCn: price.PriceCn, PriceCn: price.PriceCn,
}) })
} else {
originalPrice = append(originalPrice, model.OriginPrice{
PriceUs: price.PriceUs,
Purchases: price.Purchases,
})
}
if price.Purchases == 0 { if price.Purchases == 0 {
continue 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