消费订阅消息验证

This commit is contained in:
谭凯凯
2024-10-21 15:52:41 +08:00
committed by Tankaikai
parent 3cbb0a4316
commit 8ce38563d4

View File

@@ -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()));