Commit 01990363 by 徐康

返回空

parent 6ac9fe0c
...@@ -2353,6 +2353,14 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2353,6 +2353,14 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
if (userLoginInfoDto == null || StringUtils.isBlank(userLoginInfoDto.getMemberId())) { if (userLoginInfoDto == null || StringUtils.isBlank(userLoginInfoDto.getMemberId())) {
return ResponseUtil.error(ResponseResult.NOT_LOGIN); return ResponseUtil.error(ResponseResult.NOT_LOGIN);
} }
List<RecentGoodsInfoVo> recentGoodsInfoVoList = new ArrayList<>();
if(null == quickOrderInterval || "0".equals(quickOrderInterval)) {
return ResponseUtil.success(recentGoodsInfoVoList);
}
queryOrderVo.setStartDate(DateUtil.convert2String(DateUtil.addDays(new Date(), -Integer.valueOf(quickOrderInterval)), "yyyy-MM-dd")); queryOrderVo.setStartDate(DateUtil.convert2String(DateUtil.addDays(new Date(), -Integer.valueOf(quickOrderInterval)), "yyyy-MM-dd"));
queryOrderVo.setEndDate(DateUtil.convert2String(new Date(), "yyyy-MM-dd")); queryOrderVo.setEndDate(DateUtil.convert2String(new Date(), "yyyy-MM-dd"));
queryOrderVo.setQueryOrderStatus(Arrays.asList(OldOrderStatus.COMPLETE.getCode())); queryOrderVo.setQueryOrderStatus(Arrays.asList(OldOrderStatus.COMPLETE.getCode()));
...@@ -2406,7 +2414,6 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2406,7 +2414,6 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
return ResponseUtil.error(ResponseResult.SUCCESS.getCode(), "查询订单数量为0"); return ResponseUtil.error(ResponseResult.SUCCESS.getCode(), "查询订单数量为0");
} }
List<RecentGoodsInfoVo> recentGoodsInfoVoList = new ArrayList<>();
for (QueryOrdersResponse.DataBean.OrderBean.ProductBean o : queryOrderResponse.getData().getOrders().get(0).getProductList()) { for (QueryOrdersResponse.DataBean.OrderBean.ProductBean o : queryOrderResponse.getData().getOrders().get(0).getProductList()) {
if(ProductTypeEnum.getVirtualProductType().contains(o.getProductType())) { if(ProductTypeEnum.getVirtualProductType().contains(o.getProductType())) {
continue; continue;
......
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