Commit d216fb49 by 杨树贤

判断加上

parent 6fa502f0
Showing with 5 additions and 0 deletions
...@@ -351,6 +351,11 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku { ...@@ -351,6 +351,11 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
continue continue
} }
} }
//如果有人民币的话,就用人民币,没有的话,就用上面的美元算出来的人民币
//L0018562一定有美元的,所以不能提前判断
if price.PriceCn != 0 {
priceCnNoTax = price.PriceCn
}
originalPrice = append(originalPrice, model.OriginPrice{ originalPrice = append(originalPrice, model.OriginPrice{
Purchases: price.Purchases, Purchases: price.Purchases,
PriceCn: c.MyRound(c.MulFloat(priceCnNoTax, tax), 4), PriceCn: c.MyRound(c.MulFloat(priceCnNoTax, tax), 4),
......
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