Commit a52fe3e2 by shuhu.hou@freemud.cn

Merge branch 'feature/20200513_添加购物车校验库存' into qa

parents e6f56e0e a602f9e9
......@@ -1242,7 +1242,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
if (availableStocks != null && ResponseCodeConstant.RESPONSE_SUCCESS_STR.equals(availableStocks.getCode()) &&
(CollectionUtils.isEmpty(availableStocks.getResult()) || availableStocks.getResult().get(0).getQty() == null
|| availableStocks.getResult().get(0).getQty() <= qty)) {
|| availableStocks.getResult().get(0).getQty() < qty)) {
throw new ServiceException(ResponseResult.SHOPPING_CART_STOCK_NOT_HAVE);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment