package com.qs.mp.channel.service;
import com.qs.mp.channel.domain.Channel;
import com.qs.mp.channel.domain.vo.ChannelOperDataVO;
import com.qs.mp.channel.domain.vo.ChannelVO;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
/**
*
* 渠道经销商 服务类
*
*
* @author quanshu
* @since 2022-03-02
*/
public interface IChannelService extends IService {
/**
* 新增子渠道信息
*
* @param channel
* @return
*/
public void saveChannel(Channel channel) throws Exception;
/**
* 新增经销商
*
* @param channel
* @return
*/
public void saveSite(Channel channel) throws Exception;
/**
* 编辑子渠道信息
*
* @param channel
* @return
*/
public void updateChannel(Channel channel) throws Exception;
/**
* 编辑经销商
*
* @param channel
* @return
*/
public void updateSite(Channel channel) throws Exception;
/**
* 获取我的下级渠道列表信息,支持翻页
*
* @param channel
* @return
*/
public List selectChannelVoList(Channel channel);
/**
* 获取我的经销商列表信息,支持翻页
*
* @param channel
* @return
*/
public List selectSiteVoList(Channel channel);
/**
* 根据用户ID查询渠道
*
* @param userId
* @return
*/
public Channel getChannelByUserId(Long userId);
/**
* 根据channelNo统计最近几天days的经营数据
*/
public ChannelOperDataVO getChannelOperData(String channelNo, int days);
}