This commit is contained in:
laodaming 2023-07-21 16:19:59 +08:00
parent 0b5270f3b7
commit 53a4df065c

View File

@ -142,6 +142,7 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
if len(priceSlice) == 0 { if len(priceSlice) == 0 {
continue continue
} }
//正序排序价格(注意排序后的阶梯价格不能用作阶梯数量价格计算)
sort.Ints(priceSlice) sort.Ints(priceSlice)
if min, ok := mapProductMinPrice[v.ProductId]; ok { if min, ok := mapProductMinPrice[v.ProductId]; ok {
if min > int64(priceSlice[0]) { if min > int64(priceSlice[0]) {