消费订阅消息验证
This commit is contained in:
@@ -375,6 +375,9 @@ public class DutyService {
|
|||||||
|
|
||||||
private void subInventory(Integer shopId, Integer skuId, Integer num) {
|
private void subInventory(Integer shopId, Integer skuId, Integer num) {
|
||||||
TbProductSku tbProductSku = productSkuMapper.selectByPrimaryKey(skuId);
|
TbProductSku tbProductSku = productSkuMapper.selectByPrimaryKey(skuId);
|
||||||
|
if (tbProductSku == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
TbProductWithBLOBs product = productMapper.selectByPrimaryKey(Integer.valueOf(tbProductSku.getProductId()));
|
TbProductWithBLOBs product = productMapper.selectByPrimaryKey(Integer.valueOf(tbProductSku.getProductId()));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user