商品库存库存开关按钮关闭,库存不足不给推送
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user