This commit is contained in:
laodaming 2023-09-27 14:14:16 +08:00
parent 59114aa94a
commit 2ac507ef34

View File

@ -198,7 +198,7 @@ func (d *FsProductModel3dModel) GetProductMinPrice(ctx context.Context, productI
return errors.New(fmt.Sprintf("the count of step price is 0:%d", modelInfo.Id)) return errors.New(fmt.Sprintf("the count of step price is 0:%d", modelInfo.Id))
} }
sort.SliceStable(stepPrice.PriceRange, func(i, j int) bool { sort.SliceStable(stepPrice.PriceRange, func(i, j int) bool {
return stepPrice.PriceRange[i].Price < stepPrice.PriceRange[j].Price return stepPrice.PriceRange[i].Price > stepPrice.PriceRange[j].Price
}) })
mapModelMinPrice[modelInfo.Id] = stepPrice.PriceRange[lenRange-1].Price mapModelMinPrice[modelInfo.Id] = stepPrice.PriceRange[lenRange-1].Price
case constants.TAG_PARTS: //配件 case constants.TAG_PARTS: //配件