|
@@ -51,7 +51,7 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
|
|
|
cartItem.setDeleteStatus(0);
|
|
|
OmsCartItem existCartItem = getCartItem(cartItem);
|
|
|
if (existCartItem == null) {
|
|
|
- PmsProduct pmsProduct = pmsProductMapper.selectByPrimaryKey(cartItem.getId());
|
|
|
+ PmsProduct pmsProduct = pmsProductMapper.selectByPrimaryKey(cartItem.getProductId());
|
|
|
|
|
|
if (pmsProduct == null) {
|
|
|
throw new BizException("商品不存在");
|