Commit 7f382d13 by 杨树贤

Merge branch 'ysx-价格体系修改-20230815' into dev

parents 148648b5 2e147269
Showing with 6 additions and 2 deletions
......@@ -336,8 +336,8 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
/**
再去找售价组系数
**/
sku, priceRatioList := priceService.GetPriceRatio(sku)
skuData, priceRatioList := priceService.GetPriceRatio(sku)
sku = skuData
/** 这里是供应商系数,先保留这块逻辑 **/
ratio, _ := redis.String(redisCon.Do("HGET", "pool_supplier_ratio", sku.SupplierId))
if ratio == "" {
......@@ -388,6 +388,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if !hasCoefficient {
coefficient = defaultCoefficient
}
//下面是计算价格
//价格计算文档 https://docs.qq.com/doc/DR3RJcnNPeUNkWHRk
// 为何是固定的1.13,关税基本不会变,有变的话跟产品沟通手动修改即可
......@@ -493,5 +494,8 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if len(data) > 0 {
sku.LadderPrice = data
}
fmt.Println(sku.PriceRatio, sku.PriceRatioSort)
return sku
}
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