Commit 924e0d4f by 周晓航

Merge branch 'ka-商品技术需求购物车不校验商品库存' into qa

parents 3bb35743 802eb010
...@@ -2340,7 +2340,11 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2340,7 +2340,11 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
requestDto.setProductIds(productIds); requestDto.setProductIds(productIds);
GetProductStockResponseDto availableStocks = stockClient.getAvailableStocks(requestDto); GetProductStockResponseDto availableStocks = stockClient.getAvailableStocks(requestDto);
// 商品服务 返回null 或者 qty=null 表示不限制库存 // 商品服务 返回null 或者 qty=null 表示不限制库存
if (Objects.isNull(availableStocks) || Objects.isNull(availableStocks.getResult().get(0).getQty())) { if (Objects.isNull(availableStocks)) {
return;
}
List<GetProductStockResponseDto.DataBean> result = availableStocks.getResult();
if (CollectionUtils.isNotEmpty(result) || Objects.isNull(result.get(0).getQty())) {
return; return;
} }
if (!ResponseCodeConstant.RESPONSE_SUCCESS_STR.equals(availableStocks.getCode())) { if (!ResponseCodeConstant.RESPONSE_SUCCESS_STR.equals(availableStocks.getCode())) {
......
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