Commit 685a40db by 杨树贤

fix

parent ce80840a
Showing with 1 additions and 3 deletions
......@@ -193,7 +193,6 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
priceRatioSort = -1
}
sku.PriceRatioSort = priceRatioSort
//这是用来展示在商品服务的价格系数,专营的系数和代购的不一样,所以要转换一下展示形式
//是否有设置最低利润点阶梯,不足5个阶梯时,最高阶梯对应的最小利润点阶梯
//这里还要去获取type字段,因为这个是判断阶梯价类型的设置,如果是1的话,还是走以前的逻辑
......@@ -375,10 +374,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
if len(priceRatioList) == 0 {
return sku
}
fmt.Println(ladderType)
//走阶梯价
//type = 2 的时候,阶梯都是少于等于ladderPriceMiniProfitLevel的
fmt.Println(ladderPriceMiniProfitLevel)
// fmt.Println(ladderPriceMiniProfitLevel)
if ladderCount <= ladderPriceMiniProfitLevel {
//这里有新的逻辑,判断售价组系数的类型,如果为1,那么就是走下面的老逻辑,否则就要走固定阶梯逻辑
if ladderType == 1 {
......
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