|
@@ -20,6 +20,7 @@ import com.qs.mp.common.enums.ChannelRoleEnum;
|
|
import com.qs.mp.common.enums.ErrorCodeEnum;
|
|
import com.qs.mp.common.enums.ErrorCodeEnum;
|
|
import com.qs.mp.system.domain.SysUser;
|
|
import com.qs.mp.system.domain.SysUser;
|
|
import com.qs.mp.system.service.ISysUserService;
|
|
import com.qs.mp.system.service.ISysUserService;
|
|
|
|
+import com.qs.mp.user.service.IUserTicketOrderService;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -62,6 +63,9 @@ public class ChannelMgrController extends BaseApiController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IChannelOrderService channelOrderService;
|
|
private IChannelOrderService channelOrderService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IUserTicketOrderService userTicketOrderService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ISysUserService userService;
|
|
private ISysUserService userService;
|
|
@@ -346,10 +350,14 @@ public class ChannelMgrController extends BaseApiController {
|
|
}
|
|
}
|
|
// 查询渠道销售额、佣金收入、订单数等
|
|
// 查询渠道销售额、佣金收入、订单数等
|
|
ChannelOperDataVO channelOperDataVO = channelService.getChannelTotalOperData(channelVO.getChannelNo());
|
|
ChannelOperDataVO channelOperDataVO = channelService.getChannelTotalOperData(channelVO.getChannelNo());
|
|
- LambdaQueryWrapper<ChannelOrder> queryWrapper = new LambdaQueryWrapper<ChannelOrder>();
|
|
|
|
- queryWrapper.eq(ChannelOrder::getChannelId, channelId);
|
|
|
|
- int orderCnt = channelOrderService.count(queryWrapper);
|
|
|
|
- channelOperDataVO.setOrderCnt(orderCnt);
|
|
|
|
|
|
+ // LambdaQueryWrapper<ChannelOrder> queryWrapper = new LambdaQueryWrapper<ChannelOrder>();
|
|
|
|
+ //queryWrapper.eq(ChannelOrder::getChannelId, channelId);
|
|
|
|
+ //int orderCnt = channelOrderService.count(queryWrapper);
|
|
|
|
+ //channelOperDataVO.setOrderCnt(orderCnt);
|
|
|
|
+
|
|
|
|
+ // 盲票销量
|
|
|
|
+ int ticketSaleCnt = userTicketOrderService.getChannelTotalTicketNumCnt(channelVO.getChannelNo());
|
|
|
|
+ channelOperDataVO.setTicketSaleCnt(ticketSaleCnt);
|
|
channelVO.setOperData(channelOperDataVO);
|
|
channelVO.setOperData(channelOperDataVO);
|
|
return AjaxResult.success(channelVO);
|
|
return AjaxResult.success(channelVO);
|
|
}
|
|
}
|