Commit e9fce758 by 徐康

删除虚拟商品

parent 728fab0a
......@@ -2407,7 +2407,10 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
}
List<RecentGoodsInfoVo> recentGoodsInfoVoList = new ArrayList<>();
queryOrderResponse.getData().getOrders().get(0).getProductList().forEach( o -> {
for (QueryOrdersResponse.DataBean.OrderBean.ProductBean o : queryOrderResponse.getData().getOrders().get(0).getProductList()) {
if(ProductTypeEnum.getVirtualProductType().contains(o.getProductType())) {
continue;
}
RecentGoodsInfoVo recentGoodsInfoVo = new RecentGoodsInfoVo();
recentGoodsInfoVo.setSpuId(o.getProductId());
recentGoodsInfoVo.setSpuName(o.getProductName());
......@@ -2469,7 +2472,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
}
recentGoodsInfoVoList.add(recentGoodsInfoVo);
});
}
return ResponseUtil.success(recentGoodsInfoVoList);
}
......
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