From 2ac507ef34ab323064729a6e285d20830c0d63c8 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 27 Sep 2023 14:14:16 +0800 Subject: [PATCH] fix --- model/gmodel/fs_product_model3d_logic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/gmodel/fs_product_model3d_logic.go b/model/gmodel/fs_product_model3d_logic.go index c2d001f8..c84373b1 100755 --- a/model/gmodel/fs_product_model3d_logic.go +++ b/model/gmodel/fs_product_model3d_logic.go @@ -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)) } 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 case constants.TAG_PARTS: //配件