|
@@ -2,11 +2,13 @@ package com.qs.mp.web.controller.api.channel;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.qs.mp.channel.domain.ChannelGoodsOrder;
|
|
|
import com.qs.mp.channel.domain.ChannelGoodsSettleOrder;
|
|
|
import com.qs.mp.channel.domain.ChannelGoodsSettleOrderItem;
|
|
|
import com.qs.mp.channel.domain.param.OrderPayParam;
|
|
|
import com.qs.mp.channel.domain.vo.ChannelGoodsSettleItem;
|
|
|
+import com.qs.mp.channel.domain.vo.ChannelGoodsSettleOrderItemVO;
|
|
|
import com.qs.mp.channel.domain.vo.ChannelSettleVO;
|
|
|
import com.qs.mp.channel.service.IChannelGoodsSettleOrderItemService;
|
|
|
import com.qs.mp.channel.service.IChannelGoodsSettleOrderService;
|
|
@@ -85,9 +87,9 @@ public class ChannelGoodsSettleController extends BaseApiController {
|
|
|
Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
ChannelGoodsSettleOrder settleOrder = settleOrderService.getById(orderId);
|
|
|
ChannelSettleVO channelSettleVO = mapperFacade.map(settleOrder, ChannelSettleVO.class);
|
|
|
- List<ChannelGoodsSettleOrderItem> items = settleOrderItemService.list(new LambdaQueryWrapper<ChannelGoodsSettleOrderItem>()
|
|
|
- .eq(ChannelGoodsSettleOrderItem::getChannelId, channelId)
|
|
|
- .eq(ChannelGoodsSettleOrderItem::getOrderId, orderId));
|
|
|
+ List<ChannelGoodsSettleOrderItemVO> items = settleOrderItemService.listSettleOrderItemVO(new QueryWrapper<ChannelGoodsSettleOrderItem>()
|
|
|
+ .eq("t1.channel_id", channelId)
|
|
|
+ .eq("t1.order_id", orderId));
|
|
|
channelSettleVO.setItems(items);
|
|
|
return AjaxResult.success(channelSettleVO);
|
|
|
}
|