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