Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -272,6 +272,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> 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<ProductMapper, Product> 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)
|
||||
|
||||
Reference in New Issue
Block a user