package com.pcloud.book.advertising.dao;

import java.util.List;
import java.util.Map;
import com.pcloud.book.advertising.dto.WechatGroupClickUserDTO;
import com.pcloud.book.advertising.entity.AdvertisingClickRecord;
import com.pcloud.common.core.dao.BaseDao;

/**
 * Description 广告位点击记录数据访问层接口
 * @author PENG
 * @date 2019/2/28
 */
public interface AdvertisingClickRecordDao extends BaseDao<AdvertisingClickRecord> {

    /**
     * 微信群广告位点击读者列表
     * @param paramMap 参数Map
     * @return
     */
    List<WechatGroupClickUserDTO> clickUserList4AdvertisingWechatGroup(Map<String, Object> paramMap);


    /**
     * 获得点击人数
     * @param masterId
     * @return
     */
    public Long getClickUserNumByMasterId(Long masterId);

    /**
     * 微信群点击人数
     * @param qrcodeId
     * @param adId
     * @param statisMonth
     * @return
     */
    Long getClickUserNumByQrcode(Long qrcodeId, Long adId, String statisMonth);

    /**
     * 广告点击人数
     * @param adId
     * @param bookId
     *@param adviserId
     * @param channelId
     * @param statisMonth  @return
     */
    Long getClickUserNumByAdId(Long adId, Long bookId, Long adviserId, Long channelId, String statisMonth);

    /**
     * 书刊点击人数
     * @param adId
     * @param bookId
     * @param adviserId
     * @param channelId
     * @param statisMonth
     * @return
     */
    public Long getClickUserNumByBookId(Long adId, Long bookId, Long adviserId, Long channelId, String statisMonth);
}
