Commit 33e24e67 by hcy

PhysicalStock

parent 5a0ac286
Showing with 7 additions and 6 deletions
......@@ -339,6 +339,12 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
} else {
sku.LadderPriceResult = []int{}
}
//获取新的限制库存信息
has, limitStock := ls.getLimitStock(sku.GoodsId)
if has {
sku.Stock = int64(limitStock)
sku.BatchSn = "" //如果存在指定库存,则批次是空
}
sku = ls.GetStock(sku)
......@@ -356,12 +362,7 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
//获取关税以及价格转换
sku = ls.GetTariffAndPrice(sku)
sku = priceService.GetComparePrice(sku)
//获取新的限制库存信息
has, limitStock := ls.getLimitStock(sku.GoodsId)
if has {
sku.Stock = int64(limitStock)
sku.BatchSn = "" //如果存在指定库存,则批次是空
}
//计算批次
ls.GetSkuBatchFormat(&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