Commit 71c08559 by 周晓航

商品库存服务查询失败, 或者 数量为null 不校验库存

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 802eb010
......@@ -2373,7 +2373,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
return;
}
List<GetProductStockResponseDto.DataBean> result = availableStocks.getResult();
if (CollectionUtils.isNotEmpty(result) || Objects.isNull(result.get(0).getQty())) {
if (CollectionUtils.isEmpty(result) || Objects.isNull(result.get(0).getQty())) {
return;
}
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