|
@@ -91,7 +91,7 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
|
|
throw new BizException("库存不足");
|
|
throw new BizException("库存不足");
|
|
}
|
|
}
|
|
cartItem.setModifyDate(new Date());
|
|
cartItem.setModifyDate(new Date());
|
|
- existCartItem.setQuantity(existCartItem.getQuantity() + cartItem.getQuantity());
|
|
|
|
|
|
+ existCartItem.setQuantity(cartItem.getQuantity());
|
|
cartItemMapper.updateByPrimaryKey(existCartItem);
|
|
cartItemMapper.updateByPrimaryKey(existCartItem);
|
|
}
|
|
}
|
|
return existCartItem;
|
|
return existCartItem;
|