From 2ddd4ba4814929cb0f446643207351c2dd4ea0c3 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Fri, 8 May 2026 15:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E9=87=8D=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/product/service/impl/ProductServiceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java index d65133ca4..9605c387e 100644 --- a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java +++ b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java @@ -540,9 +540,7 @@ public class ProductServiceImpl extends ServiceImpl impl } Product old = super.getById(dto.getId()); Product entity = BeanUtil.copyProperties(dto, Product.class); - if ("weight".equals(entity.getType()) && (entity.getWeight() == null || entity.getWeight().compareTo(BigDecimal.ZERO) <= 0)) { - throw new CzgException("称重商品重量必须大于0"); - } + entity.setImages(JSON.toJSONString(dto.getImages(), JSONWriter.Feature.WriteMapNullValue)); entity.setGroupSnap("[]"); //套餐