商品库存库存开关按钮关闭,库存不足不给推送

This commit is contained in:
GYJ 2024-07-30 11:34:14 +08:00
parent bd9d3f0eea
commit ad5cd56596
1 changed files with 4 additions and 0 deletions

View File

@ -463,6 +463,10 @@ public class CartService {
return;
}
if (product.getIsStock() == null || product.getIsStock() != 1) {
return;
}
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(product.getShopId()));
if (shopInfo == null) {
log.info("商品库存预警发送失败店铺不存在店铺id{}", product.getShopId());