|
@@ -3,6 +3,7 @@ package com.qs.mp.web.controller.api.channel.mall;
|
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.qs.mp.admin.domain.Goods;
|
|
import com.qs.mp.admin.domain.Goods;
|
|
import com.qs.mp.admin.domain.vo.ShippingTemplateCalculateVO;
|
|
import com.qs.mp.admin.domain.vo.ShippingTemplateCalculateVO;
|
|
import com.qs.mp.admin.service.IGoodsService;
|
|
import com.qs.mp.admin.service.IGoodsService;
|
|
@@ -161,9 +162,9 @@ public class ChannelGoodsOrderController extends BaseApiController {
|
|
DeliveryCompany deliveryCompany = deliveryCompanyService.getById(goodsOrderInfoVO.getDeliveryId());
|
|
DeliveryCompany deliveryCompany = deliveryCompanyService.getById(goodsOrderInfoVO.getDeliveryId());
|
|
goodsOrderInfoVO.setDeliveryCompany(deliveryCompany);
|
|
goodsOrderInfoVO.setDeliveryCompany(deliveryCompany);
|
|
}
|
|
}
|
|
-
|
|
|
|
- List<ChannelGoodsOrderItem> goodsOrderItem = channelGoodsOrderItemService.list(new LambdaQueryWrapper<ChannelGoodsOrderItem>().eq(ChannelGoodsOrderItem::getOrderId, goodsOrder.getOrderId()));
|
|
|
|
-
|
|
|
|
|
|
+ QueryWrapper<ChannelGoodsOrderItem> goodsOrderItemQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ goodsOrderItemQueryWrapper.eq("t1.order_id", goodsOrder.getOrderId());
|
|
|
|
+ List<ChannelGoodsOrderItemVO> goodsOrderItem = channelGoodsOrderItemService.selectChannelGoodsOrderItemVOList(goodsOrderItemQueryWrapper);
|
|
goodsOrderInfoVO.setChannelGoodsOrderItem(goodsOrderItem);
|
|
goodsOrderInfoVO.setChannelGoodsOrderItem(goodsOrderItem);
|
|
|
|
|
|
return AjaxResult.success(goodsOrderInfoVO);
|
|
return AjaxResult.success(goodsOrderInfoVO);
|