From cefecd4dabb8c2154b2725077e3043da00d6e29b Mon Sep 17 00:00:00 2001 From: Tankaikai Date: Wed, 26 Feb 2025 17:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=A8=A1=E5=9D=97=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= 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, 3 insertions(+), 1 deletion(-) 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 875fbc1e6..ea0d73770 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 @@ -272,6 +272,7 @@ public class ProductServiceImpl extends ServiceImpl impl UpdateChain.of(ProdSku.class) .set(ProdSku::getIsGrounding, isSale) .eq(ProdSku::getId, id) + .eq(Product::getShopId, shopId) .update(); if (ProductIsSaleTypeEnum.PRODUCT.value().equals(type)) { UpdateChain.of(Product.class) @@ -291,7 +292,8 @@ public class ProductServiceImpl extends ServiceImpl impl Integer isSoldOut = param.getIsSoldOut(); UpdateChain.of(ProdSku.class) .set(ProdSku::getIsPauseSale, isSoldOut) - .eq(ProdSku::getProductId, id) + .eq(ProdSku::getId, id) + .eq(ProdSku::getShopId, shopId) .update(); if (ProductIsSaleTypeEnum.PRODUCT.value().equals(type)) { UpdateChain.of(Product.class)