商品售罄开关
This commit is contained in:
@@ -64,6 +64,10 @@ public class ShopProductInfoVo implements Serializable {
|
||||
* 是否售罄 1-是 0-否
|
||||
*/
|
||||
private Integer isSoldStock;
|
||||
/**
|
||||
* 是否自动售罄 1-是 0-否
|
||||
*/
|
||||
private Integer isAutoSoldStock;
|
||||
/**
|
||||
* 库存数量
|
||||
*/
|
||||
|
||||
@@ -717,6 +717,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||
Product update = new Product();
|
||||
update.setIsAutoSoldStock(param.getIsAutoSoldStock());
|
||||
update(update, query().eq(Product::getId, param.getId()).eq(Product::getShopId, shopId));
|
||||
clearProductCache(entity.getCategoryId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user