From bf2a0074e66bd9ac30b302594a45e9f3eb1e4116 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 14:23:22 +0800 Subject: [PATCH] 569-供应商列表:1.序号ID修改为供应商ID,并移动到第一列 2.增加供应商ID查询框 --- src/main/java/com/mzl/flower/service/flower/FlowerCategoryService.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/mzl/flower/service/flower/FlowerCategoryService.java b/src/main/java/com/mzl/flower/service/flower/FlowerCategoryService.java index b90f6c8..2cbfd39 100644 --- a/src/main/java/com/mzl/flower/service/flower/FlowerCategoryService.java +++ b/src/main/java/com/mzl/flower/service/flower/FlowerCategoryService.java @@ -204,11 +204,11 @@ BigDecimal priceHigh = null; for (Flower f : ls) { BigDecimal price = getFinalPrice(partnerId, categoryId, f.getId(), f.getPrice(), f.getLevel()); - if(priceLow == null || priceLow.doubleValue() > price.doubleValue()){ + if(priceLow == null || priceLow.compareTo(price) > 0){ priceLow = price; } - if(priceHigh == null || priceHigh.doubleValue() < price.doubleValue()){ + if(priceHigh == null || priceHigh.compareTo(price) < 0){ priceHigh = price; } } -- Gitblit v1.9.3