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)